diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-17 01:35:30 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-17 01:53:56 +0100 |
| commit | 856551a36d61b05fc78dc1ae742e6a0ec0a1303d (patch) | |
| tree | d05c49f9090aebfb7263cca5e90b0364d688c5bf /include/fw/inject.sh | |
| parent | 7c025e10362bcb7033f12631afc338e852cef99a (diff) | |
mk: add forx function for shorthand loops
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/fw/inject.sh')
| -rw-r--r-- | include/fw/inject.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/fw/inject.sh b/include/fw/inject.sh index 77af9b0a..ca5b84b7 100644 --- a/include/fw/inject.sh +++ b/include/fw/inject.sh @@ -24,8 +24,7 @@ inject() archive="$1"; new_mac="xx:xx:xx:xx:xx:xx" - nuke="" - xchanged="" + eval "`newvar nuke xchanged`" [ $# -gt 1 ] && case "$2" in nuke) @@ -169,9 +168,7 @@ modify_mac() x_ cp "${CONFIG_GBE_BIN_PATH##*../}" "$xbtmp/gbe" if [ -n "$new_mac" ] && [ "$new_mac" != "restore" ]; then - x_ make -C util/nvmutil clean - x_ make -C util/nvmutil - + forx 'x_ make -C util/nvmutil %s' clean nvmutil x_ "$nvmutil" "$xbtmp/gbe" setmac "$new_mac" fi |
