check root first
This commit is contained in:
@@ -3,17 +3,15 @@
|
||||
# Installs Dependencies automatically
|
||||
################################################################################
|
||||
|
||||
# switch to sudo user
|
||||
|
||||
# source vars
|
||||
./vars
|
||||
|
||||
# check if root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo -e "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# source vars
|
||||
./vars
|
||||
|
||||
tput setaf 2
|
||||
echo -e "Installing dependencies"
|
||||
tput setaf 9
|
||||
|
||||
Reference in New Issue
Block a user