From 84bf47b5b947a8ed5afa1fb5335266d04ee3b004 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 9 Sep 2023 23:15:17 +0100 Subject: 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 --- lbmk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lbmk') 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" -- cgit v1.2.1