Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
docs (README): add thatonedude3470 to contributors
Browse files Browse the repository at this point in the history
Change-Id: I03bc9e7ee79a762c03fbb84c74788c8834f670d4
  • Loading branch information
andi34 committed Dec 19, 2020
1 parent 4bb66a6 commit 67562c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
9 changes: 5 additions & 4 deletions src/js/sync-to-drive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()) ||
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 67562c5

Please sign in to comment.