Removed root check and added sudo check.
This commit is contained in:
parent
f76bc6ffc4
commit
87feb5bba5
1 changed files with 1 additions and 1 deletions
|
|
@ -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.."
|
||||
|
|
|
|||
Loading…
Reference in a new issue