From 87feb5bba52ce40c22c6047d56cff35831f0ad8b Mon Sep 17 00:00:00 2001 From: hemanth Date: Fri, 17 Sep 2010 01:50:01 +0800 Subject: [PATCH] Removed root check and added sudo check. --- ubuntu-setup.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu-setup.bash b/ubuntu-setup.bash index 47008ab34..96c995646 100644 --- a/ubuntu-setup.bash +++ b/ubuntu-setup.bash @@ -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.."