Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-478

mvn-phase-lib.sh has a quoting problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Beijing Release
    • Beijing Release
    • None

      Somehow an extra double quote got added somewhere along the line, breaking this code in dcaegen2/utils/scripts/mvn-phase-lib.sh:

      old:

      VALUE1=$(eval 'echo "$"'"$KEY"'"' | sed 1q)

      fix:
      VALUE1=$(eval 'echo "$'"$KEY"'"' | sed 1q)

       

      This was discovered while trying to debug another issue in dcaegen2/blueprints, which uses the script.

       

      The error seen was this:

       

      /w/workspace/dcaegen2-platform-blueprints-master-verify-java/mvn-phase-lib.sh: eval: line 184: unexpected EOF while looking for matching `"' /w/workspace/dcaegen2-platform-blueprints-master-verify-java/mvn-phase-lib.sh: eval: line 185: syntax error: unexpected end of file

            tonylhansen tonylhansen
            tonylhansen tonylhansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: