diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-17 21:11:54 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-17 21:14:08 +0100 |
| commit | 387e6dd771588b7f8426c8d0934e610626730d51 (patch) | |
| tree | 0bbff854c9ee011d5a1aeba6be7487ad90dda362 | |
| parent | a0951d11273491d1ca9c89cf53db91ab03b2fe02 (diff) | |
mk: much safer forx loop
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rwxr-xr-x | mk | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -27,7 +27,10 @@ forx() scount="$(expr $scount - 1 || :)" done - eval "$(printf '%s\n' "$@" | awk "$awkarg}")" + while [ $# -gt 0 ]; do + eval "$(printf '%s\n' "$1" | awk "$awkarg}")" + shift 1 + done } x_() |
