Compare commits
1 Commits
a2a576f14b
...
26518c8bc3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26518c8bc3 |
@ -8,7 +8,7 @@ getFiles() {
|
||||
(( cron )) || echo -n "Scanning $sourcepath... "
|
||||
# We probably have thousands of files, don't waste time on disk writes
|
||||
echo 'BEGIN TRANSACTION;' >&3
|
||||
while read time size filename
|
||||
while read -d $'\0' time size filename
|
||||
do
|
||||
if ! Select source_files id >/dev/null <<-EOWhere
|
||||
filename = $filename
|
||||
@ -56,7 +56,7 @@ getFiles() {
|
||||
fi
|
||||
progressSpin
|
||||
done < <(
|
||||
find "$sourcepath" "${prunes[@]}" -type f -not -name '.*' -printf "%T@ %s %P\n"
|
||||
find "$sourcepath" "${prunes[@]}" -type f -not -name '.*' -printf "%T@ %s %P\0"
|
||||
)
|
||||
echo 'COMMIT;' >&3
|
||||
(( cron )) || echo -n $'\r'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user