dwmbar/install.sh
Archie Hilton (thytom) 6de7a8e0a7 Made the install script actually work.
It installs dwmbar to /usr/bin and skeleton stuff to /usr/share/dwmbar
2019-10-22 23:02:57 +01:00

24 lines
508 B
Bash
Executable file

#!/bin/bash
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
# Create /usr/share/dwmbar
# Containing example dwmbarrc and modules
mkdir --parents "/usr/share/dwmbar/"
cp -r "./modules" "/usr/share/dwmbar/modules"
cp -r "./dwmbarrc" "/usr/share/dwmbar/dwmbarrc"
echo "./dwmbar --> /usr/bin/dwmbar"
cp "./dwmbar" "/usr/bin/dwmbar"
[[ $? -eq 0 ]] && echo "Installation completed successfully"