xbmk: stricter handling of files on while loops

i overlooked these!

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-19 19:24:43 +01:00
parent b25a487643
commit d9c64b2675
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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_()