diff options
author | Leah Rowe <leah@libreboot.org> | 2025-08-29 04:44:52 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-08-29 04:44:52 +0100 |
commit | d9011da0eb26744b64b8f0161d6f39b145b0af60 (patch) | |
tree | f9929c9cd09b94586026dd624a2bc0e96ff6187e /include | |
parent | 50a0bac01ce23a569fa7bfea3a8553173aa61448 (diff) |
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 <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/inject.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |