getDestDir: replace \n with SQL placeholder before passing through toascii
This commit is contained in:
parent
d646212f1d
commit
67f670779b
@ -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::}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user