Compare commits
2 Commits
76bad8af0b
...
2fc0372d9d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fc0372d9d | ||
|
|
198b6e0eee |
@ -88,6 +88,7 @@ getDestDir() {
|
|||||||
while [[ $part =~ / ]]
|
while [[ $part =~ / ]]
|
||||||
do
|
do
|
||||||
thispart="${part%%/*}"
|
thispart="${part%%/*}"
|
||||||
|
thispart=${thispart//$'\n'/::AtOM:NewLine:SQL:Inline::}
|
||||||
if (( ${destinationascii["$destination"]} ))
|
if (( ${destinationascii["$destination"]} ))
|
||||||
then
|
then
|
||||||
echo "$thispart" >&${toascii[1]}
|
echo "$thispart" >&${toascii[1]}
|
||||||
@ -100,8 +101,7 @@ getDestDir() {
|
|||||||
fi
|
fi
|
||||||
if ! [ -d "${destinationpath[$destination]}/$destdir" ]
|
if ! [ -d "${destinationpath[$destination]}/$destdir" ]
|
||||||
then
|
then
|
||||||
mkdir -p "${destinationpath[$destination]}/$destdir"
|
mkdir -p "${destinationpath[$destination]}/${destdir//::AtOM:NewLine:SQL:Inline::/$'\n'}"
|
||||||
fi
|
fi
|
||||||
destdir="${destdir//+(\/)//}"
|
destdir="${destdir//+(\/)//}"
|
||||||
destdir=${destdir//$'\n'/::AtOM:NewLine:SQL:Inline::}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -55,11 +55,11 @@ getDestFile() {
|
|||||||
destfile="${filename##*/}"
|
destfile="${filename##*/}"
|
||||||
destfile="${destfile%.*}"
|
destfile="${destfile%.*}"
|
||||||
fi
|
fi
|
||||||
|
destfile=$(sanitizeFile "$destfile")
|
||||||
destfile=${destfile//$'\n'/::AtOM:NewLine:SQL:Inline::}
|
destfile=${destfile//$'\n'/::AtOM:NewLine:SQL:Inline::}
|
||||||
if (( ${destinationascii["$destination"]} ))
|
if (( ${destinationascii["$destination"]} ))
|
||||||
then
|
then
|
||||||
echo "$destfile" >&${toascii[1]}
|
echo "$destfile" >&${toascii[1]}
|
||||||
read -r -u${toascii[0]} destfile
|
read -r -u${toascii[0]} destfile
|
||||||
fi
|
fi
|
||||||
destfile=$(sanitizeFile "$destfile")
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user