Merge pull request #9112 from emqx/chore-portable-script-output-coloring

chore: portable stdout coloring in scripts
This commit is contained in:
Ivan Dyachkov 2022-10-07 09:57:47 +02:00 committed by GitHub
commit 120905403c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -40,10 +40,10 @@ EOF
} }
logerr() { logerr() {
echo -e "\e[31mERROR: $1\e[39m" echo "$(tput setaf 1)ERROR: $1$(tput sgr0)"
} }
logmsg() { logmsg() {
echo -e "\e[33mINFO: $1\e[39m" echo "INFO: $1"
} }
REL_BRANCH_CE="${REL_BRANCH_CE:-release-v43}" REL_BRANCH_CE="${REL_BRANCH_CE:-release-v43}"

View File

@ -45,11 +45,10 @@ EOF
} }
logerr() { logerr() {
echo -e "\e[31mERROR: $1\e[39m" echo "$(tput setaf 1)ERROR: $1$(tput sgr0)"
} }
logwarn() { logwarn() {
echo -e "\e[33mINFO: $1\e[39m" echo "$(tput setaf 3)WARNING: $1$(tput sgr0)"
} }
logmsg() { logmsg() {