diff --git a/03-happy.sh b/03-happy.sh index 485527d..3cfb5fb 100644 --- a/03-happy.sh +++ b/03-happy.sh @@ -14,3 +14,13 @@ fi # exercise: write a script that prints whether today is # the weekend or not + +# Check if today is the weekend +day=$(date +%u) # +%u gives 1 (Monday) through 7 (Sunday) + +if [ "$day" -eq 6 ] || [ "$day" -eq 7 ]; then + echo "Today is the WEEKEND! 🎉" +else + echo "Today is a WEEKDAY. Keep going! 💪" +fi + diff --git a/two_branches_graph.png b/two_branches_graph.png new file mode 100644 index 0000000..077e7af Binary files /dev/null and b/two_branches_graph.png differ