need to escape $ in if-clause (but not in if-cond) to be eval'd
This commit is contained in:
parent
9b91fde09c
commit
39e22eade5
4
run.sh
4
run.sh
|
@ -45,8 +45,8 @@ run_embark () {
|
||||||
# do not alter indentation, tabs in lines below
|
# do not alter indentation, tabs in lines below
|
||||||
do
|
do
|
||||||
local include_var=$(cat <<- ENV_VAR
|
local include_var=$(cat <<- ENV_VAR
|
||||||
if [[ -n $env_var && -v $env_var ]]; then
|
if [[ -v $env_var ]]; then
|
||||||
run_opts=( "${run_opts[@]}" "-e" "$env_var" )
|
run_opts=( "\${run_opts[@]}" "-e" "\$env_var" )
|
||||||
fi
|
fi
|
||||||
ENV_VAR
|
ENV_VAR
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue