diff --git a/install.sh b/install.sh index 08ed6ad..c110d3d 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ DWMBAR="/usr/bin/dwmbar" if [ "$EUID" -ne 0 ] then echo "Please run as root" - exit 0 + exit 1 fi if [[ ! -f "dwmbar" ]]; then diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..37f1322 --- /dev/null +++ b/uninstall.sh @@ -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."