aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 7be1a26..a8fc3cd 100755
--- a/install.sh
+++ b/install.sh
@@ -6,6 +6,11 @@ CUSTOM_DIR="$MODULES_DIR/custom"
DWMBARRC="$CONFIG_DIR/dwmbarrc"
DWMBAR="/usr/bin/dwmbar"
+if [ "$EUID" -ne 0 ]
+ then echo "Please run as root"
+ exit 0
+fi
+
if [[ ! -f "dwmbar" ]]; then
echo "dwmbar executable not found."
fi