diff --git a/04-life.sh b/04-life.sh index 537da38..a9a8e01 100644 --- a/04-life.sh +++ b/04-life.sh @@ -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 \ No newline at end of file diff --git a/merged_branches.png b/merged_branches.png new file mode 100644 index 0000000..ef8401f Binary files /dev/null and b/merged_branches.png differ diff --git a/parallel_branches.png b/parallel_branches.png new file mode 100644 index 0000000..faf097d Binary files /dev/null and b/parallel_branches.png differ