Skip to content

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

Description

@poppgs64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions