Compare commits

...

3 Commits

2 changed files with 16 additions and 7 deletions

View File

@ -15,15 +15,19 @@ 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
echo "installing: $_file" if ! [ -e "$_destination" ] ; then
sudo cp "$_file" "$_install_dir" echo "installing: $_file"
sudo cp "$_file" "$_install_dir"
else
echo "file present - skipping: $_file"
fi
elif [ $_uninstall -eq 1 ] ; then elif [ $_uninstall -eq 1 ] ; then
_filename=$(basename "$_file") # WARNING - need to ensure $_filename is not empty (/usr/local/bin will be deleted)
# WARNING - need to ensure $_filename is not empty (/usrlocal/bin will be deleted) if [ -n "$_destination" ] ; then
if [ -n "$_filename" ]; then echo "uninstalling: $_destination"
echo "uninstalling: $_filename" sudo rm "$_install_dir$_destination"
sudo rm "$_install_dir$_filename"
fi fi
fi fi
done done

5
src/date-show Executable file
View File

@ -0,0 +1,5 @@
#!/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;'