Added nfw.

This commit is contained in:
Ronald Farrer 2020-01-29 11:32:55 -08:00
parent 8009577a94
commit 8efdeca1d4
2 changed files with 19 additions and 0 deletions

2
nfw/README.md Normal file
View file

@ -0,0 +1,2 @@
nfw - Not Feeling Well. Simple BASH script that spits out a random excuse for not going in to work.

17
nfw/nfw Executable file
View file

@ -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[@]} )) ]}.