diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 3266025817..26c16fced1 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -121,7 +121,7 @@ for version; do eval "variantArches=( $variantArches )" constraints= - if [ "$variant" != "$v" ]; then + if [ -n "$v" ]; then constraints="$variant" if [[ "$variant" == nanoserver-* ]]; then # nanoserver variants "COPY --from=...:...-windowsservercore-... ..."