check root first

This commit is contained in:
ducoterra
2018-11-25 16:21:38 -05:00
parent 1f4081c6ef
commit 6e907483a2

View File

@@ -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