This repository was archived by the owner on Aug 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -207,3 +207,4 @@ If you like my work and like to keep me motivated you can buy me a coconut water
207207- [ joiyco] ( https://github.com/joiyco )
208208- [ EccoB] ( https://github.com/EccoB )
209209- [ couz74] ( https://github.com/couz74 )
210+ - [ thatonedude3470] ( https://github.com/thatonedude3470 )
Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ const getDriveInfo = ({drive}) => {
7474 }
7575
7676 return json . blockdevices . find (
77- ( blk ) => blk . subsystems . includes ( 'usb' ) &&
77+ ( blk ) =>
78+ blk . subsystems . includes ( 'usb' ) &&
7879 ( ( blk . name && drive === blk . name . toLowerCase ( ) ) ||
7980 ( blk . kname && drive === blk . kname . toLowerCase ( ) ) ||
8081 ( blk . path && drive === blk . path . toLowerCase ( ) ) ||
@@ -124,9 +125,9 @@ const startSync = ({dataAbsPath, drive}) => {
124125 '-b' ,
125126 `--backup-dir=${ path . join ( drive . mountpoint , 'deleted' ) } ` ,
126127 '--ignore-existing' ,
127- ' --include=\ '*.jpg\'' ,
128- ' --include=\ '*/\'' ,
129- ' --exclude=\'*\'' ,
128+ " --include='*.jpg'" ,
129+ " --include='*/'" ,
130+ " --exclude='*'" ,
130131 '--prune-empty-dirs' ,
131132 dataAbsPath ,
132133 path . join ( drive . mountpoint , SYNC_DESTINATION_DIR )
You can’t perform that action at this time.
0 commit comments