From 8073ef8d48387aae7973c0d1e72342216004debd Mon Sep 17 00:00:00 2001 From: Chaitanya Kandagatla Date: Thu, 1 Aug 2024 14:41:37 -0500 Subject: [PATCH] release_version (#652) fail if unable to determine release version Signed-off-by: Chaitanya Kandagatla --- hack/build_release_images.sh | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 hack/build_release_images.sh diff --git a/hack/build_release_images.sh b/hack/build_release_images.sh old mode 100644 new mode 100755 index 09d20cd7..d6ab04ab --- a/hack/build_release_images.sh +++ b/hack/build_release_images.sh @@ -8,6 +8,10 @@ archs=(amd64) oses=(darwin windows linux) REL_VER=$(git describe --tags --abbrev=0 | sed "s/v//") +if [[ -z "$REL_VER" ]]; then + echo "Failed to determine release version" 1>&2 + exit 1 +fi mkdir -p releases build_release() {