Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux install fails to properly update path (and exits silently) #316

Open
poppgs64 opened this issue Apr 12, 2022 · 1 comment
Open

Linux install fails to properly update path (and exits silently) #316

poppgs64 opened this issue Apr 12, 2022 · 1 comment

Comments

@poppgs64
Copy link

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.

@bdemers
Copy link
Contributor

bdemers commented Apr 12, 2022

Thanks for the report and the suggestion @poppgs64!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants