inject.sh: shorten the nukemode variable name

just call it "nuke". this is what tells whether to remove
vendor files from an archive.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-18 11:12:20 +01:00
parent b48eb161e4
commit 7ec9ee4228
2 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -21,7 +21,7 @@ inject()
set +u +e
[ $# -lt 1 ] && err "No options specified"
eval "`setvars "" nukemode new_mac xchanged`"
eval "`setvars "" nuke new_mac xchanged`"
archive="$1";
new_mac="xx:xx:xx:xx:xx:xx"
@@ -29,7 +29,7 @@ inject()
[ $# -gt 1 ] && case "$2" in
nuke)
new_mac=""
nukemode="nuke" ;;
nuke="nuke" ;;
setmac)
[ $# -gt 2 ] && new_mac="$3" && \
[ -z "$new_mac" ] && err "Empty MAC address specified" ;;
@@ -83,7 +83,7 @@ check_target()
patch_release()
{
[ "$nukemode" = "nuke" ] || x_ ./mk download "$board"
[ "$nuke" = "nuke" ] || x_ ./mk download "$board"
has_hashes="n"
tmpromdir="$tmpromdel/bin/$board"