diff --git a/install.sh b/install.sh index ac716c6..8dbbad5 100644 --- a/install.sh +++ b/install.sh @@ -18,6 +18,12 @@ function download() { wget -q --show-progress -O "$2" "$1" } +echo -e "${GREEN}Checking for root${NC}" + +if [ "$EUID" -ne 0 ]; then + error "Please run as root" +fi + echo -e "${GREEN}Installing dependencies${NC}" apt-get update