mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Bugfix
This commit is contained in:
parent
798025c9fa
commit
2a4724c675
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue