diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-17 02:22:11 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-17 02:22:11 +0100 |
| commit | 94ff1ec49a1038d17663ca1d03cf7786a7f9f136 (patch) | |
| tree | 5a3b85e20d3a8472fc60d359a52a6d853552981c /include | |
| parent | 08021d71c2fc084bb4c9c579a0b39a62edf6e1f5 (diff) | |
inject.sh: simplify variable init and end message
the modified/not message is pointless, because the
message indicating tarball rebuild will suffice
variable initialisation simplified (global newvar)
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/fw/inject.sh | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/fw/inject.sh b/include/fw/inject.sh index ca5b84b7..adff3861 100644 --- a/include/fw/inject.sh +++ b/include/fw/inject.sh @@ -12,7 +12,7 @@ ifdtool="elf/coreboot/default/ifdtool" checkvars="CONFIG_GBE_BIN_PATH ${checkvarsxbmk-} ${checkvarschk-}" eval "`newvar archive board boarddir IFD_platform ifdprefix \ - new_mac tmpromdir tree xchanged $checkvars`" + new_mac nuke tmpromdir tree xchanged $checkvars`" inject() { @@ -24,8 +24,6 @@ inject() archive="$1"; new_mac="xx:xx:xx:xx:xx:xx" - eval "`newvar nuke xchanged`" - [ $# -gt 1 ] && case "$2" in nuke) new_mac="" @@ -53,12 +51,6 @@ inject() [ "$xchanged" = "y" ] && \ remktar - if [ "$xchanged" = "y" ]; then - printf "\n'%s' was modified\n" "$archive" 1>&2 - else - printf "\n'%s' was NOT modified\n" "$archive" 1>&2 - fi - x_ rm -Rf "$tmpromdel" } |
