From 39e22eade531491eea0fc4e94aee3428c551a1ea Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Fri, 24 Aug 2018 12:43:38 -0500 Subject: [PATCH] need to escape $ in if-clause (but not in if-cond) to be eval'd --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 326d662..80c0196 100755 --- a/run.sh +++ b/run.sh @@ -45,8 +45,8 @@ run_embark () { # do not alter indentation, tabs in lines below do local include_var=$(cat <<- ENV_VAR - if [[ -n $env_var && -v $env_var ]]; then - run_opts=( "${run_opts[@]}" "-e" "$env_var" ) + if [[ -v $env_var ]]; then + run_opts=( "\${run_opts[@]}" "-e" "\$env_var" ) fi ENV_VAR )