summaryrefslogtreecommitdiff
path: root/lbmk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-09 23:15:17 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-09 23:15:17 +0100
commit84bf47b5b947a8ed5afa1fb5335266d04ee3b004 (patch)
tree48e7512bececf2fc03f7d2eba4b45cd36bf219f4 /lbmk
parentb78009e28aab38bc149be5c57aa23505b8dd2a08 (diff)
scripts: better handling of printf: stdout/stderr
in some cases, messages that should be considered errors or warnings, were being written to the standard output, rather than written as error messages. also: one or two printf statements should specifically avoid printing errors (to any file); in these cases, stdout has been redirected to /dev/null Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'lbmk')
-rwxr-xr-xlbmk2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbmk b/lbmk
index 3abbd470..f29a9a94 100755
--- a/lbmk
+++ b/lbmk
@@ -86,7 +86,7 @@ main()
fail "Invalid mode '${mode}'. Run: ${0} help"
elif [ ! -f "${buildpath}/${mode}/${option}" ]; then
usage $0
- printf "Invalid option for '%s'." ${mode}
+ printf "Invalid option for '%s'." ${mode} 1>&2
fail "Run: ${0} ${mode} list'."
fi
"${buildpath}/${mode}/${option}" $@ || fail "lbmk error"