@@ -108,7 +108,7 @@ function kube::release::package_tarballs() {
108
108
function kube::release::package_src_tarball() {
109
109
local -r src_tarball=" ${RELEASE_TARS} /kubernetes-src.tar.gz"
110
110
kube::log::status " Building tarball: src"
111
- if [ " ${KUBE_GIT_TREE_STATE-} " = ' clean' ]; then
111
+ if [[ " ${KUBE_GIT_TREE_STATE-} " = ' clean' ] ]; then
112
112
git archive -o " ${src_tarball} " HEAD
113
113
else
114
114
find " ${KUBE_ROOT} " -mindepth 1 -maxdepth 1 \
@@ -140,7 +140,7 @@ function kube::release::package_client_tarballs() {
140
140
mkdir -p " ${release_stage} /client/bin"
141
141
142
142
local client_bins=(" ${KUBE_CLIENT_BINARIES[@]} " )
143
- if [ " ${platform%/* } " = ' windows' ]; then
143
+ if [[ " ${platform%/* } " = ' windows' ] ]; then
144
144
client_bins=(" ${KUBE_CLIENT_BINARIES_WIN[@]} " )
145
145
fi
146
146
@@ -176,7 +176,7 @@ function kube::release::package_node_tarballs() {
176
176
mkdir -p " ${release_stage} /node/bin"
177
177
178
178
local node_bins=(" ${KUBE_NODE_BINARIES[@]} " )
179
- if [ " ${platform%/* } " = ' windows' ]; then
179
+ if [[ " ${platform%/* } " = ' windows' ] ]; then
180
180
node_bins=(" ${KUBE_NODE_BINARIES_WIN[@]} " )
181
181
fi
182
182
# This fancy expression will expand to prepend a path
@@ -190,7 +190,7 @@ function kube::release::package_node_tarballs() {
190
190
191
191
# Include the client binaries here too as they are useful debugging tools.
192
192
local client_bins=(" ${KUBE_CLIENT_BINARIES[@]} " )
193
- if [ " ${platform%/* } " = ' windows' ]; then
193
+ if [[ " ${platform%/* } " = ' windows' ] ]; then
194
194
client_bins=(" ${KUBE_CLIENT_BINARIES_WIN[@]} " )
195
195
fi
196
196
# This fancy expression will expand to prepend a path
@@ -262,7 +262,7 @@ function kube::release::package_server_tarballs() {
262
262
# Include the client binaries here too as they are useful debugging tools.
263
263
local client_bins
264
264
client_bins=(" ${KUBE_CLIENT_BINARIES[@]} " )
265
- if [ " ${platform%/* } " = ' windows' ]; then
265
+ if [[ " ${platform%/* } " = ' windows' ] ]; then
266
266
client_bins=(" ${KUBE_CLIENT_BINARIES_WIN[@]} " )
267
267
fi
268
268
# This fancy expression will expand to prepend a path
@@ -310,7 +310,7 @@ function kube::release::build_hyperkube_image() {
310
310
311
311
local hyperkube_tag
312
312
hyperkube_tag=" ${registry} /hyperkube-${arch} :${version} "
313
- if [ -n " ${save_dir} " ]; then
313
+ if [[ -n " ${save_dir} " ] ]; then
314
314
" ${DOCKER[@]} " save " ${hyperkube_tag} " > " ${save_dir} /hyperkube-${arch} .tar"
315
315
fi
316
316
kube::log::status " Deleting hyperkube image ${hyperkube_tag} "
@@ -328,7 +328,7 @@ function kube::release::build_conformance_image() {
328
328
329
329
local conformance_tag
330
330
conformance_tag=" ${registry} /conformance-${arch} :${version} "
331
- if [ -n " ${save_dir} " ]; then
331
+ if [[ -n " ${save_dir} " ] ]; then
332
332
" ${DOCKER[@]} " save " ${conformance_tag} " > " ${save_dir} /conformance-${arch} .tar"
333
333
fi
334
334
kube::log::status " Deleting conformance image ${conformance_tag} "
@@ -358,7 +358,7 @@ function kube::release::create_docker_images_for_server() {
358
358
local -r docker_registry=" k8s.gcr.io"
359
359
# Docker tags cannot contain '+'
360
360
local docker_tag=" ${KUBE_GIT_VERSION/ +/ _} "
361
- if [ -z " ${docker_tag} " ]; then
361
+ if [[ -z " ${docker_tag} " ] ]; then
362
362
kube::log::error " git version information missing; cannot create Docker tag"
363
363
return 1
364
364
fi
401
401
# If we are building an official/alpha/beta release we want to keep
402
402
# docker images and tag them appropriately.
403
403
local -r release_docker_image_tag=" ${KUBE_DOCKER_REGISTRY-$docker_registry } /${binary_name} -${arch} :${KUBE_DOCKER_IMAGE_TAG-$docker_tag } "
404
- if [ " ${release_docker_image_tag} " != " ${docker_image_tag} " ]; then
404
+ if [[ " ${release_docker_image_tag} " != " ${docker_image_tag} " ] ]; then
405
405
kube::log::status " Tagging docker image ${docker_image_tag} as ${release_docker_image_tag} "
406
406
" ${DOCKER[@]} " rmi " ${release_docker_image_tag} " 2> /dev/null || true
407
407
" ${DOCKER[@]} " tag " ${docker_image_tag} " " ${release_docker_image_tag} " 2> /dev/null
@@ -456,7 +456,7 @@ function kube::release::package_kube_manifests_tarball() {
456
456
find " ${src_dir} " -name ' internal-*' -exec cp {} " ${dst_dir} " \;
457
457
cp " ${KUBE_ROOT} /cluster/gce/gci/configure-helper.sh" " ${dst_dir} /gci-configure-helper.sh"
458
458
cp " ${KUBE_ROOT} /cluster/gce/gci/configure-kubeapiserver.sh" " ${dst_dir} /configure-kubeapiserver.sh"
459
- if [ -e " ${KUBE_ROOT} /cluster/gce/gci/gke-internal-configure-helper.sh" ]; then
459
+ if [[ -e " ${KUBE_ROOT} /cluster/gce/gci/gke-internal-configure-helper.sh" ] ]; then
460
460
cp " ${KUBE_ROOT} /cluster/gce/gci/gke-internal-configure-helper.sh" " ${dst_dir} /"
461
461
fi
462
462
cp " ${KUBE_ROOT} /cluster/gce/gci/health-monitor.sh" " ${dst_dir} /health-monitor.sh"
@@ -495,7 +495,7 @@ function kube::release::package_test_platform_tarballs() {
495
495
mkdir -p " ${release_stage} /test/bin"
496
496
497
497
local test_bins=(" ${KUBE_TEST_BINARIES[@]} " )
498
- if [ " ${platform%/* } " = ' windows' ]; then
498
+ if [[ " ${platform%/* } " = ' windows' ] ]; then
499
499
test_bins=(" ${KUBE_TEST_BINARIES_WIN[@]} " )
500
500
fi
501
501
# This fancy expression will expand to prepend a path
0 commit comments