release.sh: fix green and red messages on Mac

This commit is contained in:
Boris Nagaev 2025-09-30 12:02:12 -03:00
parent 260b90d1af
commit 25c5618684
No known key found for this signature in database

View file

@ -19,12 +19,12 @@ BUILD_DIR="${SCRIPT_DIR}/tmp-build-$(date +%Y%m%d-%H%M%S)"
# green prints one line of green text (if the terminal supports it).
function green() {
echo -e "\e[0;32m${1}\e[0m"
printf "\e[0;32m%s\e[0m\n" "${1}"
}
# red prints one line of red text (if the terminal supports it).
function red() {
echo -e "\e[0;31m${1}\e[0m"
printf "\e[0;31m%s\e[0m\n" "${1}"
}
# Use GO_CMD from env if set, otherwise default to "go".