@@ -50,46 +50,46 @@ if [[ -n "${OS_ONLY_BUILD_PLATFORMS-}" ]]; then
5050 filtered+=(" ${platform} " )
5151 fi
5252 done
53- platforms=(" ${filtered[@]} " )
53+ platforms=(" ${filtered[@]+ " ${filtered[@]} " } " )
5454
5555 filtered=( )
5656 for platform in ${image_platforms[@]} ; do
5757 if [[ " ${platform} " =~ " ${OS_ONLY_BUILD_PLATFORMS} " ]]; then
5858 filtered+=(" ${platform} " )
5959 fi
6060 done
61- image_platforms=(" ${filtered[@]} " )
61+ image_platforms=(" ${filtered[@]+ " ${filtered[@]} " } " )
6262
6363 filtered=( )
6464 for platform in ${test_platforms[@]} ; do
6565 if [[ " ${platform} " =~ " ${OS_ONLY_BUILD_PLATFORMS} " ]]; then
6666 filtered+=(" ${platform} " )
6767 fi
6868 done
69- test_platforms=(" ${filtered[@]} " )
69+ test_platforms=(" ${filtered[@]+ " ${filtered[@]} " } " )
7070fi
7171
7272# Build image binaries for a subset of platforms. Image binaries are currently
7373# linux-only, and are compiled with flags to make them static for use in Docker
7474# images "FROM scratch".
75- OS_BUILD_PLATFORMS=(" ${image_platforms[@]} " )
75+ OS_BUILD_PLATFORMS=(" ${image_platforms[@]+ " ${image_platforms[@]} " } " )
7676os::build::build_static_binaries " ${OS_IMAGE_COMPILE_TARGETS_LINUX[@]-} " " ${OS_SCRATCH_IMAGE_COMPILE_TARGETS_LINUX[@]-} "
7777
7878# Build the primary client/server for all platforms
79- OS_BUILD_PLATFORMS=(" ${platforms[@]} " )
79+ OS_BUILD_PLATFORMS=(" ${platforms[@]+ " ${platforms[@]} " } " )
8080os::build::build_binaries " ${OS_CROSS_COMPILE_TARGETS[@]} "
8181
8282# Build the test binaries for the host platform
83- OS_BUILD_PLATFORMS=(" ${test_platforms[@]} " )
83+ OS_BUILD_PLATFORMS=(" ${test_platforms[@]+ " ${test_platforms[@]} " } " )
8484os::build::build_binaries " ${OS_TEST_TARGETS[@]} "
8585
8686# Make the primary client/server release.
87- OS_BUILD_PLATFORMS=(" ${platforms[@]} " )
87+ OS_BUILD_PLATFORMS=(" ${platforms[@]+ " ${platforms[@]} " } " )
8888OS_RELEASE_ARCHIVE=" openshift-origin" \
8989 os::build::place_bins " ${OS_CROSS_COMPILE_BINARIES[@]} "
9090
9191# Make the image binaries release.
92- OS_BUILD_PLATFORMS=(" ${image_platforms[@]} " )
92+ OS_BUILD_PLATFORMS=(" ${image_platforms[@]+ " ${image_platforms[@]} " } " )
9393OS_RELEASE_ARCHIVE=" openshift-origin-image" \
9494 os::build::place_bins " ${OS_IMAGE_COMPILE_BINARIES[@]} "
9595
0 commit comments