Removed root check and added sudo check.

This commit is contained in:
hemanth 2010-09-17 01:50:01 +08:00 committed by Maxwell Salzberg
parent f76bc6ffc4
commit 87feb5bba5

View file

@ -8,7 +8,7 @@
shopt -s extglob
# Check if the user has root privilages
[ "$(whoami)" != "root" ] && echo "Please run this script as root/sudo" && exit 1
[[ $( id -u) ]] && echo "$(whoami) has no sudo permissions on this machine" && exit 1
# Install build tools
echo "Installing build tools.."