From d6c445011897f96ea4f28c936a1d4467a7dd03cb Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 28 Mar 2023 03:43:07 -0700 Subject: fix copying default opts --- backomp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"]= || -- cgit v1.2.3-70-g09d2