From 390323154eefdeddbfea9ad4acbb14406d2c0b18 Mon Sep 17 00:00:00 2001 From: Thomas Hood Date: Thu, 3 Dec 2015 18:36:45 +0000 Subject: [PATCH] Update hangover.sh Executes only during weekdays --- hangover.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hangover.sh b/hangover.sh index 800a182..9907d34 100755 --- a/hangover.sh +++ b/hangover.sh @@ -5,6 +5,11 @@ if who | grep -wq $USER; then exit fi +# Execute during weekdays only +if date | grep Sat | grep Sun then + exit +fi + # Phone numbers MY_NUMBER='+xxx' NUMBER_OF_BOSS='+xxx'