summaryrefslogtreecommitdiff
path: root/backomp
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2023-03-28 03:43:07 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2023-03-28 03:43:07 -0700
commitd6c445011897f96ea4f28c936a1d4467a7dd03cb (patch)
treef7d1b8d5c05c31f3cd696023fc3d7b630969d90b /backomp
parente4159856ad6406d5df4077cb0a41263b7e54b5bb (diff)
downloadbackomp-d6c445011897f96ea4f28c936a1d4467a7dd03cb.tar.gz
backomp-d6c445011897f96ea4f28c936a1d4467a7dd03cb.tar.xz
fix copying default opts
Diffstat (limited to 'backomp')
-rwxr-xr-xbackomp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backomp b/backomp
index 13a4b3c..460584c 100755
--- a/backomp
+++ b/backomp
@@ -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}"]= ||