From 07b1d67d0b903a64ee94cf957627c9688e17fad8 Mon Sep 17 00:00:00 2001 From: Chaitanya Kandagatla Date: Thu, 1 Aug 2024 13:03:57 -0500 Subject: [PATCH] release_version 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() {