2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-08 12:40:45 +00:00

fix(genesis): match architectures literally

This commit is contained in:
Vinícius Ferrão
2026-09-04 17:15:23 -03:00
parent a8c6bd2a4a
commit 22646de0a8
+11 -7
View File
@@ -22,12 +22,16 @@ if [ "$#" -eq 0 ]; then
fi
for architecture do
case " $supported_architectures " in
*" $architecture "*) ;;
*)
printf 'Unsupported Genesis architecture: %s\n' "$architecture" >&2
exit 2
;;
esac
architecture_supported=0
for candidate in $supported_architectures; do
if [ "$architecture" = "$candidate" ]; then
architecture_supported=1
break
fi
done
if [ "$architecture_supported" -ne 1 ]; then
printf 'Unsupported Genesis architecture: %s\n' "$architecture" >&2
exit 2
fi
"$KAS" build "$oe_dir/kas/$architecture.yml"
done