summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmsd <smsd@bratchcpqserver.(none)>2014-08-27 20:20:28 +0100
committersmsd <smsd@bratchcpqserver.(none)>2014-08-27 20:20:28 +0100
commit92249640ff0bbd30605cc69a7d6f742d726d8732 (patch)
tree5b4f118eee3598401ed99ed05c6c83922b577492
Initial commitHEADmaster
-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