OS: Linux 5.4.0-77-generic #86~18.04.1-Ubuntu
In the "install" function at line 73:
# check if okta is on the path
LOCATION=$(command -v okta)
This fails (and the script exits) because the script has set exit on error at line 18:
set -e
To fix this, just do this around setting the "LOCATION" var:
set +e
# check if okta is on the path
LOCATION=$(command -v okta)
set -e
or use "try" as done in the previous code block.