diff --git a/README.md b/README.md index 17d3526ef..b12b8bc44 100644 --- a/README.md +++ b/README.md @@ -207,3 +207,4 @@ If you like my work and like to keep me motivated you can buy me a coconut water - [joiyco](https://github.com/joiyco) - [EccoB](https://github.com/EccoB) - [couz74](https://github.com/couz74) +- [thatonedude3470](https://github.com/thatonedude3470) diff --git a/src/js/sync-to-drive.js b/src/js/sync-to-drive.js index 32b4679c3..fe50189b9 100755 --- a/src/js/sync-to-drive.js +++ b/src/js/sync-to-drive.js @@ -74,7 +74,8 @@ const getDriveInfo = ({drive}) => { } return json.blockdevices.find( - (blk) => blk.subsystems.includes('usb') && + (blk) => + blk.subsystems.includes('usb') && ((blk.name && drive === blk.name.toLowerCase()) || (blk.kname && drive === blk.kname.toLowerCase()) || (blk.path && drive === blk.path.toLowerCase()) || @@ -124,9 +125,9 @@ const startSync = ({dataAbsPath, drive}) => { '-b', `--backup-dir=${path.join(drive.mountpoint, 'deleted')}`, '--ignore-existing', - '--include=\'*.jpg\'', - '--include=\'*/\'', - '--exclude=\'*\'', + "--include='*.jpg'", + "--include='*/'", + "--exclude='*'", '--prune-empty-dirs', dataAbsPath, path.join(drive.mountpoint, SYNC_DESTINATION_DIR)