From 87abc0bfe0021b657b1ec2eeea873458455e53ef Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 2 Aug 2018 13:43:05 -0500 Subject: [PATCH] need to wrap in quotes (paths could have spaces), fix var name --- run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run.sh b/run.sh index c5cae5d..88f2ac3 100755 --- a/run.sh +++ b/run.sh @@ -1,13 +1,13 @@ #!/usr/bin/env bash run_embark () { - local EMBARK_DOCKER_MOUNT_SOURCE=${EMBARK_DOCKER_MOUNT_DIR:-$PWD} - local EMBARK_DOCKER_MOUNT_TARGET=${EMBARK_DOCKER_MOUNT_DIR:-/dapp} - local EMBARK_DOCKER_IMAGE=${EMBARK_DOCKER_IMAGE:-statusim/embark} - local EMBARK_DOCKER_RUN=${EMBARK_DOCKER_RUN} + local EMBARK_DOCKER_MOUNT_SOURCE="${EMBARK_DOCKER_MOUNT_SOURCE:-$PWD}" + local EMBARK_DOCKER_MOUNT_TARGET="${EMBARK_DOCKER_MOUNT_TARGET:-/dapp}" + local EMBARK_DOCKER_IMAGE="${EMBARK_DOCKER_IMAGE:-statusim/embark}" + local EMBARK_DOCKER_RUN="${EMBARK_DOCKER_RUN}" local EMBARK_DOCKER_RUN_INTERACTIVE=${EMBARK_DOCKER_RUN_INTERACTIVE:-false} local EMBARK_DOCKER_RUN_OPTS_REPLACE=${EMBARK_DOCKER_RUN_OPTS_REPLACE:-false} - local EMBARK_DOCKER_TAG=${EMBARK_DOCKER_TAG:-latest} + local EMBARK_DOCKER_TAG="${EMBARK_DOCKER_TAG:-latest}" local -a run_opts=( "-i"