File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ PLATFORM = $(OS)/$(ARCH)
1414DIST = dist/$(PLATFORM )
1515BIN = $(DIST ) /$(BIN_NAME )
1616
17- VERSION = $(shell ./build-scripts/version.sh pkg/ version/version.go)
17+ VERSION = $(shell ./build-scripts/version.sh version/version.go)
1818
1919GIT_COMMIT? =$(shell git rev-parse --short HEAD)
2020GIT_DIRTY? =$(shell test -n "`git status --porcelain`" && echo "+CHANGES" || true)
Original file line number Diff line number Diff line change 44
55
66version_file=$1
7- version=$( awk ' $1 == "Version" && $2 == "=" { gsub(/"/, "", $3); print $3 }' < " ${version_file} " )
8- prerelease=$( awk ' $1 == "VersionPrerelease" && $2 == "=" { gsub(/"/, "", $3); print $3 }' < " ${version_file} " )
7+ version=$( awk -F- ' { print $1 }' < " ${version_file} " )
8+ prerelease=$( awk -F- ' { print $2 }' < " ${version_file} " )
99
1010if [ -n " $prerelease " ]; then
1111 echo " ${version} -${prerelease} "
You can’t perform that action at this time.
0 commit comments