Skip to content
This repository has been archived by the owner on Jul 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #258 from ElvinEfendi/fix-fixed-scripts
Browse files Browse the repository at this point in the history
Fix "DIND_K8S_BIN_DIR: unbound variable" error when running fixed scripts
  • Loading branch information
k8s-ci-robot authored Nov 26, 2018
2 parents bd00df5 + 91b890a commit 6cc498d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dind-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ function dind::run {

dind::step "Starting DIND container:" "${container_name}"

if [[ ${DIND_K8S_BIN_DIR} ]]; then
if [[ ! -z ${DIND_K8S_BIN_DIR:-} ]]; then
opts+=(-v ${DIND_K8S_BIN_DIR}:/k8s)
fi
if [[ ! ${using_linuxkit} ]]; then
Expand Down
2 changes: 1 addition & 1 deletion fixed/dind-cluster-stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ function dind::run {

dind::step "Starting DIND container:" "${container_name}"

if [[ ${DIND_K8S_BIN_DIR} ]]; then
if [[ ! -z ${DIND_K8S_BIN_DIR:-} ]]; then
opts+=(-v ${DIND_K8S_BIN_DIR}:/k8s)
fi
if [[ ! ${using_linuxkit} ]]; then
Expand Down
2 changes: 1 addition & 1 deletion fixed/dind-cluster-v1.10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ function dind::run {

dind::step "Starting DIND container:" "${container_name}"

if [[ ${DIND_K8S_BIN_DIR} ]]; then
if [[ ! -z ${DIND_K8S_BIN_DIR:-} ]]; then
opts+=(-v ${DIND_K8S_BIN_DIR}:/k8s)
fi
if [[ ! ${using_linuxkit} ]]; then
Expand Down
2 changes: 1 addition & 1 deletion fixed/dind-cluster-v1.11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ function dind::run {

dind::step "Starting DIND container:" "${container_name}"

if [[ ${DIND_K8S_BIN_DIR} ]]; then
if [[ ! -z ${DIND_K8S_BIN_DIR:-} ]]; then
opts+=(-v ${DIND_K8S_BIN_DIR}:/k8s)
fi
if [[ ! ${using_linuxkit} ]]; then
Expand Down
2 changes: 1 addition & 1 deletion fixed/dind-cluster-v1.12.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ function dind::run {

dind::step "Starting DIND container:" "${container_name}"

if [[ ${DIND_K8S_BIN_DIR} ]]; then
if [[ ! -z ${DIND_K8S_BIN_DIR:-} ]]; then
opts+=(-v ${DIND_K8S_BIN_DIR}:/k8s)
fi
if [[ ! ${using_linuxkit} ]]; then
Expand Down
2 changes: 1 addition & 1 deletion fixed/dind-cluster-v1.9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ function dind::run {

dind::step "Starting DIND container:" "${container_name}"

if [[ ${DIND_K8S_BIN_DIR} ]]; then
if [[ ! -z ${DIND_K8S_BIN_DIR:-} ]]; then
opts+=(-v ${DIND_K8S_BIN_DIR}:/k8s)
fi
if [[ ! ${using_linuxkit} ]]; then
Expand Down

0 comments on commit 6cc498d

Please sign in to comment.