Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1620

Fix kafka-ranger-env.sh script to not throw error when it is sourced from bash

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0, 0.7.1
    • Component/s: plugins
    • Labels:
      None

      Description

      Current implementation of kafka-ranger-env.sh relies on the $0 bash variable,
      However, when the script is sourced using the source or the . command, the $0 variable expands to text -bash which gives an error.

        Attachments

        1. RANGER-1620.patch
          2 kB
          Gautam Borad

          Issue Links

            Activity

              People

              • Assignee:
                gautamborad Gautam Borad
                Reporter:
                gautamborad Gautam Borad
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: