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>
This commit is contained in:
Leah Rowe
2026-09-17 02:22:11 +01:00
parent 08021d71c2
commit 94ff1ec49a
+1 -9
View File
@@ -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"
}