Skip to content

getJavaVersion has dangling \r #4

Description

@brunerd

There's a \r at the end of currVersBase from the getJavaVersion, so the compare fails and will bug you in Self Service mode

Added a sed item to to kill \r: -e "s/"$'\r'"//g"

So it is now:
currVersBase=$( curl -sfA "${UAGENT}" "${URL}" 2>/dev/null | awk -F'[>|<]' '/Version/{print}' | sed -e 's/Version //;s/ Update /./' -e "s/"$'\r'"//g")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions