need to wrap in quotes (paths could have spaces), fix var name

This commit is contained in:
Michael Bradley, Jr 2018-08-02 13:43:05 -05:00
parent 1c54a3196c
commit 87abc0bfe0
1 changed files with 5 additions and 5 deletions

10
run.sh
View File

@ -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"