Skip to content

Commit

Permalink
Add explanation
Browse files Browse the repository at this point in the history
Co-authored-by: kmahapatra <kmahapatra@vmware.com>
  • Loading branch information
2 people authored and knative-prow-robot committed Nov 9, 2023
1 parent 13db8a3 commit f32df65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ function set_latest_to_highest_semver() {
fi
echo "Setting latest release to highest semver"

local last_version release_id
local last_version release_id # don't combine with assignment else $? will be 0

last_version="$(hub_tool -p release | cut -d'-' -f2 | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+$'| sort -r -V | head -1)"
if ! [[ $? -eq 0 ]]; then
Expand Down

0 comments on commit f32df65

Please sign in to comment.