From 78a046bc59ce107119207911624eb4e25a1f802d Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Tue, 31 Oct 2023 17:55:51 -0600 Subject: [PATCH] update release script for first time use --- script/release | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/release b/script/release index 246da59..0b79fb7 100755 --- a/script/release +++ b/script/release @@ -19,6 +19,13 @@ GREEN='\033[0;32m' BLUE='\033[0;34m' latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1)) + +# if the latest_tag is empty, then there are no tags - let the user know +if [[ -z "$latest_tag" ]]; then + echo -e "No tags found (yet) - continue to create your first tag and push it" + latest_tag="[unknown]" +fi + echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}" read -p 'New Release Tag (vX.X.X format): ' new_tag