Compare commits
2 Commits
76bad8af0b
...
2fc0372d9d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fc0372d9d | ||
|
|
198b6e0eee |
@ -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::}
|
||||
}
|
||||
|
||||
@ -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")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user