]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
avoid spawning whoami to get username in tools/install-gnuarm4.sh
authordn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 22 Jun 2012 13:46:56 +0000 (13:46 +0000)
committerdn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 22 Jun 2012 13:46:56 +0000 (13:46 +0000)
tools/install-gnuarm4.sh

index ffb509bfc27fbc5c73ce51e2e7b2fef4d0892153..c55d81f214540a75ea41adec5bcaf23c679f6048 100755 (executable)
@@ -81,7 +81,7 @@ GPG_OPTS="--keyring ${GNU_KEYRING_GPG} --no-default-keyring --homedir ."
 # End of configuration section. You shouldn't have to modify anything below.
 ############################################################################
 
-if [[ `whoami` != "root" ]]; then
+if [[ "$USER" != "root" ]]; then
   echo "*** Warning! Not running as root!"
   echo "Installation may fail if you do not have appropriate permissions!"
 fi
Impressum, Datenschutz