diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-19 19:57:06 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-19 19:58:55 +0100 |
commit | 900da04efa929a9373d5a6f3f56f8b8ac8f193df (patch) | |
tree | 893f758ce2917b7dea4e77311f4f292c9e50263a /include/lib.sh | |
parent | 8aaf404ddea8a8d6c21f0a1f83f1675a8b0895aa (diff) |
tree.sh: fix up copy_elf(), bad for loop
Because of how sh works, having just the [] line causes
sh to exit, annoyingly without an error message, but it
does cause a non-zero exit.
This bug will have already been triggering, before I added
the recent error handling on files for this for loop.
also do it to the other loop in lib.sh
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rw-r--r-- | include/lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh index 184d0491..7c4d71ea 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -111,7 +111,7 @@ fx_() dx_() { [ ! -f "$2" ] || while read -r fx; do - $1 "$fx" || return 1 + $1 "$fx" || return 1; : done < "$2" || err "dx_ $*: cannot read '$2'"; : } |