Debug output to stderr

This commit is contained in:
Julian Ospald 2019-04-10 14:42:36 +08:00
parent ae99de5876
commit ae8b5ae27e
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

2
ghcup
View File

@ -506,7 +506,7 @@ emake() { # avoid re-checking for gmake
# Print a blue debug message if verbosity is enabled. # Print a blue debug message if verbosity is enabled.
debug_message() { debug_message() {
if ${VERBOSE} ; then if ${VERBOSE} ; then
printf "\\033[0;34m%s\\033[0m\\n" "$1" (>&2 printf "\\033[0;34m%s\\033[0m\\n" "$1")
fi fi
} }