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::} }