From 198b6e0eee466e33e3f7798151867391902cbd00 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Sun, 15 Feb 2026 03:56:01 +0100 Subject: [PATCH] getDestDir: replace \n with SQL placeholder before passing through toascii --- lib/files/getDestDir | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/files/getDestDir b/lib/files/getDestDir index 36aedb9..79d2c32 100644 --- a/lib/files/getDestDir +++ b/lib/files/getDestDir @@ -88,6 +88,7 @@ getDestDir() { while [[ $part =~ / ]] do thispart="${part%%/*}" + thispart=${thispart//$'\n'/::AtOM:NewLine:SQL:Inline::} if (( ${destinationascii["$destination"]} )) then echo "$thispart" >&${toascii[1]} @@ -100,8 +101,7 @@ getDestDir() { fi if ! [ -d "${destinationpath[$destination]}/$destdir" ] then - mkdir -p "${destinationpath[$destination]}/$destdir" + mkdir -p "${destinationpath[$destination]}/${destdir//::AtOM:NewLine:SQL:Inline::/$'\n'}" fi destdir="${destdir//+(\/)//}" - destdir=${destdir//$'\n'/::AtOM:NewLine:SQL:Inline::} }