File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ BLUE='\033[0;34m'
2828latest_tag=$( git describe --tags " $( git rev-list --tags --max-count=1) " )
2929
3030if [[ -z " $latest_tag " ]]; then
31- # There are no existing release tags
32- echo -e " No tags found (yet) - Continue to create and push your first tag"
33- latest_tag=" [unknown]"
31+ # There are no existing release tags
32+ echo -e " No tags found (yet) - Continue to create and push your first tag"
33+ latest_tag=" [unknown]"
3434fi
3535
3636# Display the latest release tag
@@ -42,11 +42,11 @@ read -r -p 'Enter a new release tag (vX.X.X format): ' new_tag
4242# Validate the new release tag
4343tag_regex=' v[0-9]+\.[0-9]+\.[0-9]+$'
4444if echo " $new_tag " | grep -q -E " $tag_regex " ; then
45- echo -e " Tag: ${BLUE} $new_tag ${OFF} is valid"
45+ echo -e " Tag: ${BLUE} $new_tag ${OFF} is valid"
4646else
47- # Release tag is not `vX.X.X` format
48- echo -e " Tag: ${BLUE} $new_tag ${OFF} is ${RED} not valid${OFF} (must be in vX.X.X format)"
49- exit 1
47+ # Release tag is not `vX.X.X` format
48+ echo -e " Tag: ${BLUE} $new_tag ${OFF} is ${RED} not valid${OFF} (must be in vX.X.X format)"
49+ exit 1
5050fi
5151
5252# Tag the new release
You can’t perform that action at this time.
0 commit comments