We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71e85e commit 78a046bCopy full SHA for 78a046b
script/release
@@ -19,6 +19,13 @@ GREEN='\033[0;32m'
19
BLUE='\033[0;34m'
20
21
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
29
echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
30
read -p 'New Release Tag (vX.X.X format): ' new_tag
31
0 commit comments