From 2a4724c675fb1b20ee4660ca25ddd3bcb8df146a Mon Sep 17 00:00:00 2001 From: G2-Games Date: Sun, 4 Sep 2022 19:54:40 -0500 Subject: [PATCH] Bugfix --- install.sh | 2 +- welcome.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index e9f89b3..7cab8ba 100755 --- a/install.sh +++ b/install.sh @@ -16,7 +16,7 @@ then curl -SL https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output /home/$USER/.welcome/welcome.sh elif which wget >/dev/null ; then - wget https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --output-file /home/$USER/.welcome/welcome.sh + wget https://github.com/G2-Games/welcome.sh/releases/download/v${version}/welcome.sh --P /home/$USER/.welcome/ else echo "Cannot download, neither wget nor curl is available." exit 1 diff --git a/welcome.sh b/welcome.sh index ba5aaf6..b3082ce 100755 --- a/welcome.sh +++ b/welcome.sh @@ -35,7 +35,6 @@ clock () { greeting () { # Set the hour hour=$(date +%H) - hour=17 if [ $hour -le 11 ] && [ $hour -gt 6 ]; then @@ -46,7 +45,7 @@ greeting () { elif [ $hour -le 16 ] && [ $hour -gt 12 ]; then echo -en "It's ${AFTN}afternoon${NCOL}. " - elif [ $hour -le 19 ] && [ $hour -gt 16 ]; + elif [ $hour -le 19 ] && [ $hour -gt 17 ]; then echo -en "It's ${EVEN}evening${NCOL}. " else