diff --git a/dind-cluster.sh b/dind-cluster.sh index ad0dc7b..1661665 100755 --- a/dind-cluster.sh +++ b/dind-cluster.sh @@ -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 diff --git a/fixed/dind-cluster-stable.sh b/fixed/dind-cluster-stable.sh index d0c8f2b..accbb81 100755 --- a/fixed/dind-cluster-stable.sh +++ b/fixed/dind-cluster-stable.sh @@ -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 diff --git a/fixed/dind-cluster-v1.10.sh b/fixed/dind-cluster-v1.10.sh index a10b545..fa44c23 100755 --- a/fixed/dind-cluster-v1.10.sh +++ b/fixed/dind-cluster-v1.10.sh @@ -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 diff --git a/fixed/dind-cluster-v1.11.sh b/fixed/dind-cluster-v1.11.sh index 7ce8905..0073e0d 100755 --- a/fixed/dind-cluster-v1.11.sh +++ b/fixed/dind-cluster-v1.11.sh @@ -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 diff --git a/fixed/dind-cluster-v1.12.sh b/fixed/dind-cluster-v1.12.sh index 1fa4392..9b298c8 100755 --- a/fixed/dind-cluster-v1.12.sh +++ b/fixed/dind-cluster-v1.12.sh @@ -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 diff --git a/fixed/dind-cluster-v1.9.sh b/fixed/dind-cluster-v1.9.sh index 82edbae..59aa104 100755 --- a/fixed/dind-cluster-v1.9.sh +++ b/fixed/dind-cluster-v1.9.sh @@ -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