From 92249640ff0bbd30605cc69a7d6f742d726d8732 Mon Sep 17 00:00:00 2001 From: smsd Date: Wed, 27 Aug 2014 20:20:28 +0100 Subject: Initial commit --- friday.bash | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 friday.bash 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 -- cgit v1.2.3