mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
xbmk: stricter handling of files on while loops
i overlooked these! Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-2
@@ -106,9 +106,9 @@ fx_()
|
||||
|
||||
dx_()
|
||||
{
|
||||
[ -f "$2" ] && while read -r fx; do
|
||||
[ ! -f "$2" ] || while read -r fx; do
|
||||
$1 "$fx" || return 1
|
||||
done < "$2"; :
|
||||
done < "$2" || err "dx_ $*: cannot read '$2'"; :
|
||||
}
|
||||
|
||||
x_()
|
||||
|
||||
Reference in New Issue
Block a user