mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-01 05:07:03 +08:00
avoid spawning whoami to get username in tools/install-gnuarm4.sh
This commit is contained in:
parent
70049c47db
commit
ef928a0e8b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue