diff --git a/install.sh b/install.sh index 1fd17bd..4b83e32 100755 --- a/install.sh +++ b/install.sh @@ -15,19 +15,15 @@ echo "Install directory: '$_install_dir'" echo "" for _file in ./src/* ; do - _destination="$_install_dir"$(basename "$_file") if [ $_uninstall -eq 0 ] ; then - if ! [ -e "$_destination" ] ; then - echo "installing: $_file" - sudo cp "$_file" "$_install_dir" - else - echo "file present - skipping: $_file" - fi + echo "installing: $_file" + sudo cp "$_file" "$_install_dir" elif [ $_uninstall -eq 1 ] ; then - # WARNING - need to ensure $_filename is not empty (/usr/local/bin will be deleted) - if [ -n "$_destination" ] ; then - echo "uninstalling: $_destination" - sudo rm "$_install_dir$_destination" + _filename=$(basename "$_file") + # WARNING - need to ensure $_filename is not empty (/usrlocal/bin will be deleted) + if [ -n "$_filename" ]; then + echo "uninstalling: $_filename" + sudo rm "$_install_dir$_filename" fi fi done diff --git a/src/date-show b/src/date-show deleted file mode 100755 index 1f585aa..0000000 --- a/src/date-show +++ /dev/null @@ -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;' - -