mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 18:12:53 +00:00
Added uninstall script and tweaked install.sh
This commit is contained in:
parent
6de7a8e0a7
commit
e9a3867a4f
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
12
uninstall.sh
Executable file
12
uninstall.sh
Executable 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."
|
Loading…
Reference in a new issue