From 6e907483a28323e3122ec4f7ee9fff0ebff0b46e Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sun, 25 Nov 2018 16:21:38 -0500 Subject: [PATCH] check root first --- install.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index f1cb2ad..162c23f 100755 --- a/install.sh +++ b/install.sh @@ -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