diff --git a/04-life.sh b/04-life.sh index 537da38..afc2af4 100644 --- a/04-life.sh +++ b/04-life.sh @@ -8,9 +8,15 @@ if [ "$meaning" -eq 42 ]; then else echo "Awww... You don't know the meaning of life" fi +if [ "$hour" -ge 5 ] && [ "$hour" -lt 12 ]; then + echo "Good morning!" +else + echo "It’s not evening right now." +fi # here are some other arithemetic comparison operators # -eq -ne -gt -ge -lt -le # exercise: write a script that prints whether it is # morning or not +