Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions 03-happy.sh
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ss2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.