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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user