]> Pierre Choffet | Git repositories - banq_wikidata.git/commitdiff
Fix variable that must not be read only
authorPierre Choffet <peuc@wanadoo.fr>
Tue, 8 Jul 2025 16:01:13 +0000 (12:01 -0400)
committerPierre Choffet <peuc@wanadoo.fr>
Tue, 8 Jul 2025 16:02:52 +0000 (12:02 -0400)
banq2wd.sh

index 53a656fc9f4308e7cd200596415fe1d5ffdd4ee5..90dfd54d08672ee8d70ed6a2afb573f525b6730a 100755 (executable)
@@ -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}"