Skip to content

Commit 25c5618

Browse files
committed
release.sh: fix green and red messages on Mac
1 parent 260b90d commit 25c5618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ BUILD_DIR="${SCRIPT_DIR}/tmp-build-$(date +%Y%m%d-%H%M%S)"
1919

2020
# green prints one line of green text (if the terminal supports it).
2121
function green() {
22-
echo -e "\e[0;32m${1}\e[0m"
22+
printf "\e[0;32m%s\e[0m\n" "${1}"
2323
}
2424

2525
# red prints one line of red text (if the terminal supports it).
2626
function red() {
27-
echo -e "\e[0;31m${1}\e[0m"
27+
printf "\e[0;31m%s\e[0m\n" "${1}"
2828
}
2929

3030
# Use GO_CMD from env if set, otherwise default to "go".

0 commit comments

Comments
 (0)