avoid spawning whoami to get username in tools/install-gnuarm4.sh
This commit is contained in:
parent
70049c47db
commit
ef928a0e8b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user