From ed98f19394e179aeff032c5b2631611ec33fc8aa Mon Sep 17 00:00:00 2001 From: mahim23 Date: Thu, 13 Sep 2018 17:41:14 +0530 Subject: [PATCH] fix run_script dangling-quote bug --- run.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/run.ps1 b/run.ps1 index 5b99f4b..f733c59 100644 --- a/run.ps1 +++ b/run.ps1 @@ -121,7 +121,7 @@ function Start-Embark { if (-not ($EMBARK_DOCKER_RUN)) { if ($cmd[0] -cin @("-V", "--version", "-h", "--help", "new", "demo", "build", "run", "blockchain", "simulator", "test", "reset", "graph", "upload", "version")) { - $cmd = "embark " + $cmd + $cmd = @("embark") + $cmd } } else { @@ -131,7 +131,10 @@ function Start-Embark { } $run_script = Get-Content $EMBARK_DOCKER_RUN - $run_script = $run_script -join "`n" + + # " doesn't directly get passed to the container so has to be replaced by \" + $run_script = $run_script -join "`n" -replace '"', '\"' + $run_script = "exec bash -${i_flag}s `$(tty) ${cmd} << 'RUN' __tty=`$1 shift