Updated the install.sh

This commit is contained in:
Mathias Wagner 2024-02-16 00:40:55 +01:00
parent f7f8986863
commit e0a2b4d3df
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

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