chore: portable stdout coloring in scripts
BSD's (macos) version of echo does not support -e flag
This commit is contained in:
parent
10f1052be5
commit
280668ce13
|
@ -40,10 +40,10 @@ EOF
|
|||
}
|
||||
|
||||
logerr() {
|
||||
echo -e "\e[31mERROR: $1\e[39m"
|
||||
echo "$(tput setaf 1)ERROR: $1$(tput sgr0)"
|
||||
}
|
||||
logmsg() {
|
||||
echo -e "\e[33mINFO: $1\e[39m"
|
||||
echo "INFO: $1"
|
||||
}
|
||||
|
||||
REL_BRANCH_CE="${REL_BRANCH_CE:-release-v43}"
|
||||
|
|
|
@ -45,11 +45,10 @@ EOF
|
|||
}
|
||||
|
||||
logerr() {
|
||||
echo -e "\e[31mERROR: $1\e[39m"
|
||||
echo "$(tput setaf 1)ERROR: $1$(tput sgr0)"
|
||||
}
|
||||
|
||||
logwarn() {
|
||||
echo -e "\e[33mINFO: $1\e[39m"
|
||||
echo "$(tput setaf 3)WARNING: $1$(tput sgr0)"
|
||||
}
|
||||
|
||||
logmsg() {
|
||||
|
|
Loading…
Reference in New Issue