Compare commits
No commits in common. "c6deac7e029baaad493e4d4b51b04654baad4f83" and "800525d90b5406bb0e2cec5bb4e1efdd0af2f76f" have entirely different histories.
c6deac7e02
...
800525d90b
@ -1,15 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
copyFiles_matching() {
|
copyFiles_matching() {
|
||||||
local extension="${filename##*.}"
|
extension="${filename##*.}"
|
||||||
if \
|
|
||||||
cp -al \
|
cp -al \
|
||||||
"$sourcepath/$filename" \
|
"$sourcepath/$filename" \
|
||||||
"${destinationpath[$destination]}/$destdir/$destfile.$extension" \
|
"$destdir/$destfile.$extension" \
|
||||||
2>/dev/null \
|
2>/dev/null \
|
||||||
|| cp -a \
|
|| cp -a \
|
||||||
"$sourcepath/$filename" \
|
"$sourcepath/$filename" \
|
||||||
"${destinationpath[$destination]}/$destdir/$destfile.$extension"
|
"$destdir/$destfile.$extension"
|
||||||
then
|
|
||||||
echo \
|
echo \
|
||||||
"UPDATE destination_files" \
|
"UPDATE destination_files" \
|
||||||
"SET filename=" \
|
"SET filename=" \
|
||||||
@ -25,12 +23,11 @@ copyFiles_matching() {
|
|||||||
" WHERE id=$destfileid" \
|
" WHERE id=$destfileid" \
|
||||||
" )," \
|
" )," \
|
||||||
" rename_pattern=" \
|
" rename_pattern=" \
|
||||||
"\"${destinationrenamepath[$destination]}/${destinationrename[$destination]}\","\
|
"\"${destinationrenamepath[$destination]}/${destinationrename[$destination]}\","\
|
||||||
" fat32compat=" \
|
" fat32compat=" \
|
||||||
"${destinationfat32compat["$destination"]}," \
|
"${destinationfat32compat["$destination"]}," \
|
||||||
" ascii=${destinationascii["$destination"]}"\
|
" ascii=${destinationascii["$destination"]}" \
|
||||||
"WHERE id=$destfileid;" \
|
"WHERE id=$destfileid;" \
|
||||||
>&3
|
>&3
|
||||||
(( ++copies ))
|
(( ++copies ))
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -98,7 +98,7 @@ getDestDir() {
|
|||||||
part=${part#*/}
|
part=${part#*/}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if ! [ -d "${destinationpath[$destination]}/$destdir" ]
|
if ! [ -d "$destdir" ]
|
||||||
then
|
then
|
||||||
mkdir -p "${destinationpath[$destination]}/$destdir"
|
mkdir -p "${destinationpath[$destination]}/$destdir"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user