mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-19 21:20:31 +02:00
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:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user