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
1 changed files with 1 additions and 1 deletions

2
ghcup
View File

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