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