mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 00:03:45 +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()
|
scankconfig()
|
||||||
{
|
{
|
||||||
for cbc in $cv; do
|
for cbc in $cv; do
|
||||||
grep "$cbc" "$1" 1>>"$xbtmp/cbcfg" 2>/dev/null || :
|
grep "$cbc" "$1" 2>/dev/null 1>>"$xbtmp/cbcfg" || :
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user