Fixed a major issue with sudo user check\!
This commit is contained in:
parent
8323e7dcb2
commit
d66eedaf00
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,8 @@
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
# Check if the user has sudo privileges.
|
# 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
|
# Install build tools
|
||||||
echo "Installing build tools.."
|
echo "Installing build tools.."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue