mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
remove some trailing whitespace, change root test to check for UID instead of whoami
This commit is contained in:
parent
0f0ba550f9
commit
04357595e2
@ -57,7 +57,7 @@ while true; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ $(whoami) != "root" ]] && ! ${local}; then
|
||||
if [[ ${UID} != 0 ]] && ! ${local}; then
|
||||
echo "Please rerun as root or use the --local option."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user