Skip to content

Commit 36c3bfa

Browse files
Photoboothflacoonb
authored andcommitted
style: fix prettier formatting in shellQuote and rsync args
Made-with: Cursor
1 parent 6b8905e commit 36c3bfa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

assets/js/remotebuzzer-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ function move2usbAction() {
750750
// First check the mountpoint from lsblk data
751751
if (drive.mountpoint) {
752752
try {
753-
execSync(`mountpoint -q '${drive.mountpoint.replace(/'/g, '\'\\\'\'')}'`, { stdio: 'ignore' });
753+
execSync(`mountpoint -q '${drive.mountpoint.replace(/'/g, "'\\''")}'`, { stdio: 'ignore' });
754754
return drive.mountpoint;
755755
// eslint-disable-next-line no-unused-vars
756756
} catch (err) {

assets/js/sync-to-drive.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ class SyncToDrive {
126126
'-b',
127127
'--backup-dir=' + path.join(device.mountpoint, 'deleted'),
128128
'--ignore-existing',
129-
'--exclude=\'deleted\'',
130-
'--include=\'*.\'{jpg,chk,gif,mp4}',
131-
'--include=\'*/\'',
132-
'--exclude=\'*\'',
129+
"--exclude='deleted'",
130+
"--include='*.'{jpg,chk,gif,mp4}",
131+
"--include='*/'",
132+
"--exclude='*'",
133133
'--prune-empty-dirs',
134134
this.source + '/',
135135
destinationPath
@@ -440,7 +440,7 @@ class SyncToDrive {
440440
// First check the mountpoint from lsblk data
441441
if (device.mountpoint) {
442442
try {
443-
execSync(`mountpoint -q '${device.mountpoint.replace(/'/g, '\'\\\'\'')}'`, { stdio: 'ignore' });
443+
execSync(`mountpoint -q '${device.mountpoint.replace(/'/g, "'\\''")}'`, { stdio: 'ignore' });
444444

445445
return device.mountpoint;
446446
// eslint-disable-next-line no-unused-vars

0 commit comments

Comments
 (0)