summaryrefslogtreecommitdiff
path: root/friday.bash
diff options
context:
space:
mode:
Diffstat (limited to 'friday.bash')
-rwxr-xr-xfriday.bash13
1 files changed, 13 insertions, 0 deletions
diff --git a/friday.bash b/friday.bash
new file mode 100755
index 0000000..33fa8d2
--- /dev/null
+++ b/friday.bash
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+friday=`date -d Fri +%s`
+now=`date +%s`
+
+if [ $friday -gt $now ]
+then
+ friday="It isn't Friday :("
+else
+ friday="It's Friday!"
+fi
+
+echo $friday