diff --git a/03-happy.sh b/03-happy.sh index 485527d..0b2b879 100644 --- a/03-happy.sh +++ b/03-happy.sh @@ -1,14 +1,14 @@ #!/bin/sh -echo "You are happy?" -read answer +day=$(date +%A) -if [ "$answer" = "yes" ]; then - echo "hmmmm gooood yess you are happy" +if [ "$day" = "Saturday" ] || [ "$day" = "Sunday" ]; then + echo "It’s the weekend!" else - echo "Still Smile c:" + echo "It’s a weekday!" fi + # here are the other string comparison operators # != , -n (not an empty string) , -z (an empty string) diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..429f14a Binary files /dev/null and b/screenshot.png differ diff --git a/ss2.png b/ss2.png new file mode 100644 index 0000000..9fa63f9 Binary files /dev/null and b/ss2.png differ