wok diff get-flash-plugin/stuff/get-flash-plugin @ rev 417

get-skype, get-flash-plugin: check we are root
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 12 19:54:03 2008 +0000 (2008-03-12)
parents 50ae4849a222
children 510870ca891b
line diff
     1.1 --- a/get-flash-plugin/stuff/get-flash-plugin	Sat Mar 01 00:04:19 2008 +0000
     1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Wed Mar 12 19:54:03 2008 +0000
     1.3 @@ -1,5 +1,11 @@
     1.4  #!/bin/sh -e
     1.5  
     1.6 +if test $(id -u) != 0 ; then
     1.7 +	echo -e "\nYou must be root to run `basename $0`."
     1.8 +	echo -e "Please type 'su' and root password to become super-user.\n"
     1.9 +	exit 0
    1.10 +fi
    1.11 +
    1.12  DIR=install_flash_player_9_linux
    1.13  TARBALL=$DIR.tar.gz
    1.14  WEB_SITE="http://www.adobe.com/products/flash/"