Merge pull request #8405 from jwhonce/wip/version

Fix sed regex to update version in version/version.go
This commit is contained in:
OpenShift Merge Robot 2020-11-19 00:57:20 +01:00 committed by GitHub
commit 70f91fb96d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ LAST_TAG=$(git describe --tags --abbrev=0)
write_go_version()
{
LOCAL_VERSION="$1"
sed -i "s/^\(var Version = semver.MustParse\( \"\).*/\1${LOCAL_VERSION}\"\)/" version/version.go
sed -i "s/^\(var Version = semver.MustParse( *\"\).*/\1${LOCAL_VERSION}\")/" version/version.go
}
write_spec_version()