properly handle $@
This commit is contained in:
parent
c9676b4a1b
commit
58ece39cfa
7
run.sh
7
run.sh
|
@ -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" );;
|
||||||
|
|
Loading…
Reference in New Issue