From e0a2b4d3df450ba1e2bf8fcdea3a2adee50715ea Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Fri, 16 Feb 2024 00:40:55 +0100 Subject: [PATCH] Updated the install.sh --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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