From d9011da0eb26744b64b8f0161d6f39b145b0af60 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 29 Aug 2025 04:44:52 +0100 Subject: inject.sh: redirect stderer to /dev/null FIRST for the grep command, we must ensure that errors are suppressed *BEFORE* outputting to a file. depending on the sh implementation, the previous code might have begun outputting to a file before suppressing errors. Signed-off-by: Leah Rowe --- include/inject.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/inject.sh b/include/inject.sh index 795b2c70..621ff131 100644 --- a/include/inject.sh +++ b/include/inject.sh @@ -112,7 +112,7 @@ readkconfig() scankconfig() { for cbc in $cv; do - grep "$cbc" "$1" 1>>"$xbtmp/cbcfg" 2>/dev/null || : + grep "$cbc" "$1" 2>/dev/null 1>>"$xbtmp/cbcfg" || : done } -- cgit v1.2.1