From 0e997c45c28312e09a814ccb626bb7833544dd3c Mon Sep 17 00:00:00 2001 From: ION606 Date: Fri, 21 Jun 2024 15:26:16 +0000 Subject: [PATCH] Update setup.sh --- setup.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 9c1b67c..fa202c4 100644 --- a/setup.sh +++ b/setup.sh @@ -1,7 +1,10 @@ #!/bin/bash -# Escalate Privilage -sudo su +# Make sure you're sudo +if [ "$EUID" -ne 0 ] + then echo "Please run as root (run `sudo -i` then try again)" + exit +fi # Make temporary directory mkdir ~/Downloads/tempinstall || ""