diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2023-03-28 03:43:07 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2023-03-28 03:43:07 -0700 |
commit | d6c445011897f96ea4f28c936a1d4467a7dd03cb (patch) | |
tree | f7d1b8d5c05c31f3cd696023fc3d7b630969d90b | |
parent | e4159856ad6406d5df4077cb0a41263b7e54b5bb (diff) | |
download | backomp-d6c445011897f96ea4f28c936a1d4467a7dd03cb.tar.gz backomp-d6c445011897f96ea4f28c936a1d4467a7dd03cb.tar.xz |
fix copying default opts
-rwxr-xr-x | backomp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ while IFS='=' read -r f1 f2; do if [[ "${f1}" =~ ^\[(.*)]$ ]]; then base_path="${BASH_REMATCH[1]}" - opts="$(declare -p def_opts | sed '1s/[^=]*=//')" + declare -A opts="$(declare -p def_opts | sed '1s/[^=]*=//')" elif [[ "${f1}" == '$'* ]]; then opt="${f1:1}" [[ "${f2}" == '-' ]] && opts["${opt}"]= || |