Added uninstall script and tweaked install.sh

This commit is contained in:
Archie Hilton (thytom) 2019-10-22 23:08:33 +01:00
parent 6de7a8e0a7
commit e9a3867a4f
2 changed files with 13 additions and 1 deletions

View file

@ -4,7 +4,7 @@ DWMBAR="/usr/bin/dwmbar"
if [ "$EUID" -ne 0 ] if [ "$EUID" -ne 0 ]
then echo "Please run as root" then echo "Please run as root"
exit 0 exit 1
fi fi
if [[ ! -f "dwmbar" ]]; then if [[ ! -f "dwmbar" ]]; then

12
uninstall.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit 1
fi
rm -rf "/usr/share/dwmbar"
rm -f "/usr/bin/dwmbar"
echo "Completed."
echo "Please delete ~/.config/dwmbar manually, if desired."