pkolaczk/fclones

Release 0.30.0 has broken my shell script.

broes5 opened this issue · 1 comments

After trying to run a shell script that I wrote to only copy photos from phones that I didn't already have on my laptop, I found that it didn't work. These are the lines that don't work anymore:

PHOTODIRS=$(find ~/mnt -type d -name 'DCIM')
fclones group --cache --format fdupes --unique ~/album $PHOTODIRS

I tried changing it so paths were separated by spaces instead of new lines:

PHOTODIRS=$(find ~/mnt -type d -name 'DCIM'|awk 'BEGIN {ORS=" "} {print $0}')
fclones group --cache --format fdupes --unique ~/album $PHOTODIRS

But that didn't work either and fclones would print the error:

[2023-03-19 21:12:37.919] fclones: error: Can't access '/home/benjamin/mnt/DCIM /home/benjamin/mnt/SdCardBackUp/DCIM ': No such file or directory (os error 2)
[2023-03-19 21:12:37.920] fclones: error: Some input paths could not be accessed.

If, for one reason or another you don't consider this change in behavior to be a bug, then a suggestion for a way to fix my script would be much appreciated.

My script still doesn't work after downgrading fclones. Idiot.