Skip to content

Commit a28b58b

Browse files
committed
make the colored text bold
1 parent 4b33f5f commit a28b58b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

script/release

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ tag_glob='v[0-9].[0-9].[0-9]*'
2828

2929
# Terminal colors
3030
OFF='\033[0m'
31-
RED='\033[0;31m'
32-
GREEN='\033[0;32m'
33-
BLUE='\033[0;34m'
31+
BOLD_RED='\033[1;31m'
32+
BOLD_GREEN='\033[1;32m'
33+
BOLD_BLUE='\033[1;34m'
3434

3535
# Get the latest release tag
3636
if ! latest_tag=$(git describe --abbrev=0 --match="$tag_glob"); then
@@ -40,25 +40,25 @@ if ! latest_tag=$(git describe --abbrev=0 --match="$tag_glob"); then
4040
fi
4141

4242
# Display the latest release tag
43-
echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
43+
echo -e "The latest release tag is: ${BOLD_BLUE}${latest_tag}${OFF}"
4444

4545
# Prompt the user for the new release tag
4646
read -r -p 'Enter a new release tag (vX.X.X format): ' new_tag
4747

4848
# Validate the new release tag
4949
if echo "$new_tag" | grep -q -E "$tag_regex"; then
50-
echo -e "Tag: ${BLUE}$new_tag${OFF} is valid"
50+
echo -e "Tag: ${BOLD_BLUE}$new_tag${OFF} is valid"
5151
else
5252
# Release tag is not `vX.X.X` format
53-
echo -e "Tag: ${BLUE}$new_tag${OFF} is ${RED}not valid${OFF} (must be in vX.X.X format)"
53+
echo -e "Tag: ${BOLD_BLUE}$new_tag${OFF} is ${BOLD_RED}not valid${OFF} (must be in vX.X.X format)"
5454
exit 1
5555
fi
5656

5757
# Tag the new release
5858
git tag -a "$new_tag" -m "$new_tag Release"
59-
echo -e "${GREEN}Tagged: $new_tag${OFF}"
59+
echo -e "${BOLD_GREEN}Tagged: $new_tag${OFF}"
6060

6161
# Push the new tag to the remote
6262
git push --follow-tags
63-
echo -e "${GREEN}Release tag pushed to remote${OFF}"
64-
echo -e "${GREEN}Done!${OFF}"
63+
echo -e "${BOLD_GREEN}Release tag pushed to remote${OFF}"
64+
echo -e "${BOLD_GREEN}Done!${OFF}"

0 commit comments

Comments
 (0)