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 --- script/update/blobs/mrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/update/blobs/mrc') diff --git a/script/update/blobs/mrc b/script/update/blobs/mrc index e4de2be4..681b3699 100755 --- a/script/update/blobs/mrc +++ b/script/update/blobs/mrc @@ -62,11 +62,11 @@ check_existing() { [ -f "${_mrc_complete}" ] || \ return 0 - printf 'found existing mrc.bin\n' + printf "found existing mrc.bin\n" 1>&2 [ "$(sha512sum "${_mrc_complete}" | awk '{print $1}')" \ = "${_mrc_complete_hash}" ] && \ return 1 - printf 'hashes did not match, starting over\n' + printf "hashes did not match, starting over\n" 1>&2 } build_dependencies() -- cgit v1.2.1