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

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.0.0, 0.7.1
    • plugins
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: