@@ -50,46 +50,46 @@ if [[ -n "${OS_ONLY_BUILD_PLATFORMS-}" ]]; then
50
50
filtered+=(" ${platform} " )
51
51
fi
52
52
done
53
- platforms=(" ${filtered[@]} " )
53
+ platforms=(" ${filtered[@]+ " ${filtered[@]} " } " )
54
54
55
55
filtered=( )
56
56
for platform in ${image_platforms[@]} ; do
57
57
if [[ " ${platform} " =~ " ${OS_ONLY_BUILD_PLATFORMS} " ]]; then
58
58
filtered+=(" ${platform} " )
59
59
fi
60
60
done
61
- image_platforms=(" ${filtered[@]} " )
61
+ image_platforms=(" ${filtered[@]+ " ${filtered[@]} " } " )
62
62
63
63
filtered=( )
64
64
for platform in ${test_platforms[@]} ; do
65
65
if [[ " ${platform} " =~ " ${OS_ONLY_BUILD_PLATFORMS} " ]]; then
66
66
filtered+=(" ${platform} " )
67
67
fi
68
68
done
69
- test_platforms=(" ${filtered[@]} " )
69
+ test_platforms=(" ${filtered[@]+ " ${filtered[@]} " } " )
70
70
fi
71
71
72
72
# Build image binaries for a subset of platforms. Image binaries are currently
73
73
# linux-only, and are compiled with flags to make them static for use in Docker
74
74
# images "FROM scratch".
75
- OS_BUILD_PLATFORMS=(" ${image_platforms[@]} " )
75
+ OS_BUILD_PLATFORMS=(" ${image_platforms[@]+ " ${image_platforms[@]} " } " )
76
76
os::build::build_static_binaries " ${OS_IMAGE_COMPILE_TARGETS_LINUX[@]-} " " ${OS_SCRATCH_IMAGE_COMPILE_TARGETS_LINUX[@]-} "
77
77
78
78
# Build the primary client/server for all platforms
79
- OS_BUILD_PLATFORMS=(" ${platforms[@]} " )
79
+ OS_BUILD_PLATFORMS=(" ${platforms[@]+ " ${platforms[@]} " } " )
80
80
os::build::build_binaries " ${OS_CROSS_COMPILE_TARGETS[@]} "
81
81
82
82
# Build the test binaries for the host platform
83
- OS_BUILD_PLATFORMS=(" ${test_platforms[@]} " )
83
+ OS_BUILD_PLATFORMS=(" ${test_platforms[@]+ " ${test_platforms[@]} " } " )
84
84
os::build::build_binaries " ${OS_TEST_TARGETS[@]} "
85
85
86
86
# Make the primary client/server release.
87
- OS_BUILD_PLATFORMS=(" ${platforms[@]} " )
87
+ OS_BUILD_PLATFORMS=(" ${platforms[@]+ " ${platforms[@]} " } " )
88
88
OS_RELEASE_ARCHIVE=" openshift-origin" \
89
89
os::build::place_bins " ${OS_CROSS_COMPILE_BINARIES[@]} "
90
90
91
91
# Make the image binaries release.
92
- OS_BUILD_PLATFORMS=(" ${image_platforms[@]} " )
92
+ OS_BUILD_PLATFORMS=(" ${image_platforms[@]+ " ${image_platforms[@]} " } " )
93
93
OS_RELEASE_ARCHIVE=" openshift-origin-image" \
94
94
os::build::place_bins " ${OS_IMAGE_COMPILE_BINARIES[@]} "
95
95
0 commit comments