Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1642

Avoid shell references relative to the current script path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      This is based on the review comment from Eric Yang:

      You might need pwd -P to resolve symlinks. I don't recommend to use script location to make decision of where binaries are supposed to be because someone else can make newbie mistake and refactor your script to invalid the original coding intend. See this blog to explain the right way to get the directory of a bash script. This is the reason that I used OZONE_HOME as base reference frequently.

        Attachments

          Activity

            People

            • Assignee:
              elek Marton Elek
              Reporter:
              eyang Eric Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: