1
0
mirror of https://github.com/wting/autojump synced 2024-09-28 22:10:45 +00:00

remove some trailing whitespace, change root test to check for UID instead of whoami

This commit is contained in:
William Ting 2012-01-13 11:05:43 -10:00
parent 0f0ba550f9
commit 04357595e2
2 changed files with 11 additions and 11 deletions

View File

@ -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