properly handle $@

This commit is contained in:
Michael Bradley, Jr 2018-07-25 15:16:58 -05:00
parent c9676b4a1b
commit 58ece39cfa
1 changed files with 1 additions and 6 deletions

7
run.sh
View File

@ -69,12 +69,7 @@ run_embark () {
local EMBARK_DOCKER_IMAGE=${EMBARK_DOCKER_IMAGE:-statusim/embark} local EMBARK_DOCKER_IMAGE=${EMBARK_DOCKER_IMAGE:-statusim/embark}
local EMBARK_DOCKER_TAG=${EMBARK_DOCKER_TAG:-latest} local EMBARK_DOCKER_TAG=${EMBARK_DOCKER_TAG:-latest}
local -a cmd= local -a cmd=( "$@" )
if [[ "$1" = "demo" ]]; then
cmd=( $(echo "embark $@") )
else
cmd=( $(echo "$@") )
fi
case $1 in case $1 in
-V|--version|-h|--help|new|demo|build|run|blockchain|simulator|test|\ -V|--version|-h|--help|new|demo|build|run|blockchain|simulator|test|\
reset|graph|upload|version) cmd=( "embark" "$cmd" );; reset|graph|upload|version) cmd=( "embark" "$cmd" );;