Skip to content

Commit

Permalink
Update version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
redscholar authored Dec 18, 2024
1 parent 908f1c9 commit 277ca55
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions hack/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ KUBE_GIT_TREE_STATE=""
KUBE_GIT_VERSION=""
KUBE_GIT_MAJOR=""
KUBE_GIT_MINOR=""
KUBE_GIT_RELEASE_COMMIT=""
SOURCE_DATE_EPOCH=""

version_get_version_vars() {
Expand Down Expand Up @@ -72,12 +71,11 @@ version() {
"gitTreeState": "%s",
"gitMajor": "%s",
"gitMinor": "%s",
"gitVersion": "%s",
"gitReleaseCommit": "%s"
"gitVersion": "%s"
}\n' \
"$buildDate" "$KUBE_GIT_COMMIT" "$KUBE_GIT_TREE_STATE" "$KUBE_GIT_MAJOR" "$KUBE_GIT_MINOR" "$KUBE_GIT_VERSION" "$KUBE_GIT_RELEASE_COMMIT"
"$buildDate" "$KUBE_GIT_COMMIT" "$KUBE_GIT_TREE_STATE" "$KUBE_GIT_MAJOR" "$KUBE_GIT_MINOR" "$KUBE_GIT_VERSION"
}

if [ "$(basename "$0")" = "version.sh" ]; then
version
fi
fi

0 comments on commit 277ca55

Please sign in to comment.