mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
Added root check in install script
This commit is contained in:
parent
9a22deb487
commit
797f8e8cb1
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue