Added root check in install script

This commit is contained in:
Manuel Palenzuela 2019-10-22 01:12:33 +01:00
parent 9a22deb487
commit 797f8e8cb1

View file

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