summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-17 21:11:54 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-17 21:14:08 +0100
commit387e6dd771588b7f8426c8d0934e610626730d51 (patch)
tree0bbff854c9ee011d5a1aeba6be7487ad90dda362
parenta0951d11273491d1ca9c89cf53db91ab03b2fe02 (diff)
mk: much safer forx loop
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk b/mk
index f22aaf40..e767d45f 100755
--- a/mk
+++ b/mk
@@ -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_()