colors will not print on unsupported terminals
This commit is contained in:
parent
026156e1f5
commit
472400d7e1
1 changed files with 9 additions and 7 deletions
|
@ -33,6 +33,7 @@ if [ -n "${PKG_CONFIG_LIBS}" ]; then
|
|||
LDLIBS="${CFLAGS} $(pkg-config --libs "${PKG_CONFIG_LIBS}")"
|
||||
fi
|
||||
|
||||
if [ "$(tput colors)" != "-1" ]; then
|
||||
clear_formatting="\033[0m"
|
||||
bold="\033[1m"
|
||||
info_color="\033[34m" # default: "\033[34m" - blue
|
||||
|
@ -40,6 +41,7 @@ err_color="\033[31m" # default: "\033[31m" - red
|
|||
build_progress_color="\033[35m" # default: "\033[35m" - magenta
|
||||
build_info_color="\033[32m" # default: "\033[32m" - green
|
||||
link_info_color="\033[36m" # default: "\033[36m" - cyan
|
||||
fi
|
||||
|
||||
usage() {
|
||||
less <<EOF
|
||||
|
|
Loading…
Reference in a new issue