From 8efdeca1d4596b17864b70cc104c52e12cd1a8c5 Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Wed, 29 Jan 2020 11:32:55 -0800 Subject: [PATCH] Added nfw. --- nfw/README.md | 2 ++ nfw/nfw | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 nfw/README.md create mode 100755 nfw/nfw diff --git a/nfw/README.md b/nfw/README.md new file mode 100644 index 0000000..e3807d7 --- /dev/null +++ b/nfw/README.md @@ -0,0 +1,2 @@ +nfw - Not Feeling Well. Simple BASH script that spits out a random excuse for not going in to work. + diff --git a/nfw/nfw b/nfw/nfw new file mode 100755 index 0000000..60a1cca --- /dev/null +++ b/nfw/nfw @@ -0,0 +1,17 @@ +#!/bin/bash + +# nfw == not feeling well + +# Basic structure: +# $salutation +# $what +# $sorry +# $updates + +salutation=("Hi" "Hello" "Hey") +what=("I'm not feeling well" "I'm not feeling super great" "I had a rough night with the kid" "I feel like crap" "I don't feel good") +sorry=("I'm sorry if that causes problems" "I appologize if this makes it difficult" "I hope this doesn't cause any issues") +updates=("I'll try to check in later" "I will see how I feel later and try for a half-day" "Hopefully I feel better and can get something done later") + +echo -e ${salutation[ $(( RANDOM % ${#salutation[@]} )) ]},\\n\\n${what[ $(( RANDOM % ${#what[@]} )) ]}. ${sorry[ $(( RANDOM % ${#sorry[@]} )) ]}. ${updates[ $(( RANDOM % ${#updates[@]} )) ]}. +