This commit is contained in:
G2-Games 2022-09-04 19:54:40 -05:00
parent 798025c9fa
commit 2a4724c675
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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