From 288a7e439eb15108ed2b6fda0ab37096b6c71d99 Mon Sep 17 00:00:00 2001 From: KeyaunaF Date: Fri, 24 Oct 2025 17:59:41 -0400 Subject: [PATCH] Fixed 03-happy.sh weekend check and syntax errors --- 03-happy.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/03-happy.sh b/03-happy.sh index 485527d..f38bc8c 100644 --- a/03-happy.sh +++ b/03-happy.sh @@ -1,3 +1,4 @@ + #!/bin/sh echo "You are happy?" @@ -14,3 +15,13 @@ fi # exercise: write a script that prints whether today is # the weekend or not + +day=$(date +%A) + +if [ "$day" = "Saturday" ] || [ "$day" = "Sunday" ]; then + echo "It's the weekend!" +else + echo "It's a weekday - stay strong!" +fi + +