From 94ff1ec49a1038d17663ca1d03cf7786a7f9f136 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 17 Sep 2026 02:22:11 +0100 Subject: [PATCH] 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 --- include/fw/inject.sh | 10 +--------- 1 file changed, 1 insertion(+), 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" }