Skip to content

Commit

Permalink
support version formats with and w/o v
Browse files Browse the repository at this point in the history
  • Loading branch information
bortok committed Jan 29, 2023
1 parent 98c74ed commit ef71a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-otgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ checkDesiredVersion() {
TAG=$(wget $latest_release_url -O - 2>&1 | grep 'href="/open-traffic-generator/otgen/releases/tag/v[0-9]*.[0-9]*.[0-9]*\"' | sed -E 's/.*\/open-traffic-generator\/otgen\/releases\/tag\/(v[0-9\.]+)".*/\1/g' | head -1)
fi
else
TAG="v${DESIRED_VERSION}"
TAG="v$(echo ${DESIRED_VERSION} | sed 's/^v//')"
fi
VERSION="$(echo $TAG | sed 's/^v//')"
}
Expand Down

0 comments on commit ef71a2a

Please sign in to comment.