Fixup error message when bind mount configs are nonexistent
This commit is contained in:
parent
d5543eeb1b
commit
6bab1e1c42
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ fi
|
|||
|
||||
# Extra bind mounts
|
||||
bind_mount_var_name="EXTRA_BIND_MOUNTS_${1//-/_}"
|
||||
if [[ "$(declare -p ${bind_mount_var_name})" =~ "declare -a" ]]; then
|
||||
if [[ "$(declare -p ${bind_mount_var_name} 2>&1)" =~ "declare -a" ]]; then
|
||||
bind_mount_var="${bind_mount_var_name}[@]"
|
||||
for mount in "${!bind_mount_var}"; do
|
||||
extra_args="$extra_args -v $mount"
|
||||
|
|
Loading…
Reference in a new issue