summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorIsmael Luceno2021-09-09 22:46:48 +0200
committerIsmael Luceno2021-09-09 22:50:02 +0200
commitb9731838d7124c193af09c6739754e364d9c75df (patch)
tree8e0ac7747c06ceff96379ad167feb9bd37f9fd47 /utils
parent29ae6f57f85e2a3347dcda6735539614f46d2971 (diff)
qemu: Fix QEMU_ARCHS sanitization warnings
Diffstat (limited to 'utils')
-rwxr-xr-xutils/qemu/CONFIGURE4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/qemu/CONFIGURE b/utils/qemu/CONFIGURE
index 67f702215e..ca0ff39d91 100755
--- a/utils/qemu/CONFIGURE
+++ b/utils/qemu/CONFIGURE
@@ -27,8 +27,8 @@ else
for (i = 1; i <= NF; i++) selected[$i]
FS = " "
}
- $1 in selected {print $1; next}
- {printf "WARN: %s architecture removed\n", $1 >"/dev/stderr"}
+ $1 in selected {print $1; delete selected[$1]; next}
+ END {for (i in selected) printf "WARN: %s architecture removed\n", $1 >"/dev/stderr"}
' "$QEMU_ARCH_FILE")
fi