Compare commits
No commits in common. "38b55016288691c909d16056371327b11ede8275" and "42a9aefb9420022079271be2798da5ae58f9165b" have entirely different histories.
38b5501628
...
42a9aefb94
14
install.sh
14
install.sh
|
@ -15,19 +15,15 @@ echo "Install directory: '$_install_dir'"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
for _file in ./src/* ; do
|
for _file in ./src/* ; do
|
||||||
_destination="$_install_dir"$(basename "$_file")
|
|
||||||
if [ $_uninstall -eq 0 ] ; then
|
if [ $_uninstall -eq 0 ] ; then
|
||||||
if ! [ -e "$_destination" ] ; then
|
|
||||||
echo "installing: $_file"
|
echo "installing: $_file"
|
||||||
sudo cp "$_file" "$_install_dir"
|
sudo cp "$_file" "$_install_dir"
|
||||||
else
|
|
||||||
echo "file present - skipping: $_file"
|
|
||||||
fi
|
|
||||||
elif [ $_uninstall -eq 1 ] ; then
|
elif [ $_uninstall -eq 1 ] ; then
|
||||||
# WARNING - need to ensure $_filename is not empty (/usr/local/bin will be deleted)
|
_filename=$(basename "$_file")
|
||||||
if [ -n "$_destination" ] ; then
|
# WARNING - need to ensure $_filename is not empty (/usrlocal/bin will be deleted)
|
||||||
echo "uninstalling: $_destination"
|
if [ -n "$_filename" ]; then
|
||||||
sudo rm "$_install_dir$_destination"
|
echo "uninstalling: $_filename"
|
||||||
|
sudo rm "$_install_dir$_filename"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
st -t 'WM_FORCE_FLOATING' -g 40x3+16+16 bash -c 'tput bold; tput setaf 4; tput civis; while true; do clear ; date +" %R -- %A %d %B %Y" ; sleep 1 ; done;'
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue