From: Pierre Choffet Date: Tue, 8 Jul 2025 16:01:13 +0000 (-0400) Subject: Fix variable that must not be read only X-Git-Url: https://git.choffet.net/?a=commitdiff_plain;h=9e40769eb32f25a38f52a9a03efd09b6d2edc984;p=banq_wikidata.git Fix variable that must not be read only --- diff --git a/banq2wd.sh b/banq2wd.sh index 53a656f..90dfd54 100755 --- a/banq2wd.sh +++ b/banq2wd.sh @@ -43,7 +43,6 @@ function getParams() { fi eval set -- "${allparams}" - declare -p allparams while true do @@ -123,7 +122,7 @@ merge() { cp "${first_path}" "${old_tmp_path}" for path in "${@}" do - local -r tmp_path="$(mktemp)" + local tmp_path="$(mktemp)" xmlstarlet tr merge_marcxml.xslt -s "marcxml-path=${path}" "${old_tmp_path}" >| "${tmp_path}" rm "${old_tmp_path}" old_tmp_path="${tmp_path}"