Fixed a major issue with sudo user check\!

This commit is contained in:
hemanth 2010-09-17 21:57:02 +08:00 committed by Raphael Sofaer
parent 8323e7dcb2
commit d66eedaf00

View file

@ -8,7 +8,8 @@
shopt -s extglob
# Check if the user has sudo privileges.
[[ $( id -u) ]] && echo "$(whoami) has no sudo permissions on this machine" && exit 1
sudo -v >/dev/null 2>&1 || { echo $(whoami) has no sudo privileges ; exit 1; }
# Install build tools
echo "Installing build tools.."