mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 13:32: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
|
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 ;
|
elif which wget >/dev/null ;
|
||||||
then
|
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
|
else
|
||||||
echo "Cannot download, neither wget nor curl is available."
|
echo "Cannot download, neither wget nor curl is available."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -35,7 +35,6 @@ clock () {
|
||||||
greeting () {
|
greeting () {
|
||||||
# Set the hour
|
# Set the hour
|
||||||
hour=$(date +%H)
|
hour=$(date +%H)
|
||||||
hour=17
|
|
||||||
|
|
||||||
if [ $hour -le 11 ] && [ $hour -gt 6 ];
|
if [ $hour -le 11 ] && [ $hour -gt 6 ];
|
||||||
then
|
then
|
||||||
|
@ -46,7 +45,7 @@ greeting () {
|
||||||
elif [ $hour -le 16 ] && [ $hour -gt 12 ];
|
elif [ $hour -le 16 ] && [ $hour -gt 12 ];
|
||||||
then
|
then
|
||||||
echo -en "It's ${AFTN}afternoon${NCOL}. "
|
echo -en "It's ${AFTN}afternoon${NCOL}. "
|
||||||
elif [ $hour -le 19 ] && [ $hour -gt 16 ];
|
elif [ $hour -le 19 ] && [ $hour -gt 17 ];
|
||||||
then
|
then
|
||||||
echo -en "It's ${EVEN}evening${NCOL}. "
|
echo -en "It's ${EVEN}evening${NCOL}. "
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue