mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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>
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user