build: Print shfmt error to stderr instead of stdout (#29)

This commit is contained in:
Ethan P 2020-05-03 18:24:33 -07:00
parent 5af706fc7c
commit a3c4fa1014
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -396,7 +396,7 @@ fi
[[ -d "$BIN" ]] || mkdir "$BIN"
if ! will_minify none && ! command -v shfmt &>/dev/null; then
printc "%{RED}Warning: cannot find shfmt. Unable to minify scripts.%{CLEAR}\n"
printc "%{RED}Warning: cannot find shfmt. Unable to minify scripts.%{CLEAR}\n" 1>&2
OPT_MINIFY=none
fi