Hey @strayer you've got a typo in the script. Line 31 has loggedinUser where it should be loggedInUser (capital i). Or you need to change the variable in elsewhere so it's lowercase i. ¯_(ツ)_/¯
And "03 ]]" and "==" are undefined in POSIX shell. Single brackets and single equals work fine.
Check out www.shellcheck.net. It's great for checking bash and sh scripts for possible problems and keeping your code up to date with the latest changes in those scripting environments. ;-)
Oh, and thanks for the script too! Another app down!
@cwaldrip thanks for catching that Typo. I've updated it on github.
This script really doesn't get much use ;-)
I'll check out www.shellcheck.net , Thanks always looking for new tools.
@strayer Just adding another linter for bash if you use Atom https://atom.io/packages/linter-shellcheck. I used to use spellcheck until I installed this plugin which works inline as you script
This is just what I was looking for glad someone else had this request and thanks for sharing the script saved me a lot of time
Is there an updated page to the script?