Skip to content

Commit 78a046b

Browse files
committed
update release script for first time use
1 parent a71e85e commit 78a046b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

script/release

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ GREEN='\033[0;32m'
1919
BLUE='\033[0;34m'
2020

2121
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
22+
23+
# if the latest_tag is empty, then there are no tags - let the user know
24+
if [[ -z "$latest_tag" ]]; then
25+
echo -e "No tags found (yet) - continue to create your first tag and push it"
26+
latest_tag="[unknown]"
27+
fi
28+
2229
echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
2330
read -p 'New Release Tag (vX.X.X format): ' new_tag
2431

0 commit comments

Comments
 (0)