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: 10 additions & 0 deletions 04-life.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ fi

# exercise: write a script that prints whether it is
# morning or not

hour=$(date +%H)

echo "It is currently: $hour o'clock."

if [ "$hour" -lt 12 ]; then
echo "Good morning!"
else
echo "It is not morning right now."
fi
Binary file added merged_branches.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 parallel_branches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.