getDestFile: replace with placeholder AFTER sanitizeFile (who mangles our placeholder)

This commit is contained in:
Vincent Riquer 2026-02-15 03:58:50 +01:00 committed by ScriptFanix
parent 67f670779b
commit a5ae4fdecf

View File

@ -55,11 +55,11 @@ getDestFile() {
destfile="${filename##*/}"
destfile="${destfile%.*}"
fi
destfile=$(sanitizeFile "$destfile")
destfile=${destfile//$'\n'/::AtOM:NewLine:SQL:Inline::}
if (( ${destinationascii["$destination"]} ))
then
echo "$destfile" >&${toascii[1]}
read -r -u${toascii[0]} destfile
fi
destfile=$(sanitizeFile "$destfile")
}