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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment