Skip to content

Commit 863f722

Browse files
committed
chore: fix bash command format in VS Code tasks and clean up whitespace in platform implementations (cherry-picked)
1 parent a311d0f commit 863f722

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

.vscode/tasks.json

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
"args": [
235235
"-l",
236236
"-c",
237-
"( if [[ $(pwd) =~ ^/mnt ]]; then powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'cmake --build build --config Debug --parallel $env:NUMBER_OF_PROCESSORS'; else cmake --build build/Debug --config Debug --parallel $(nproc); fi )"
237+
"( if [[ $(pwd) =~ ^/mnt ]]; then powershell.exe -NoProfile -ExecutionPolicy Bypass -Command \"cmake --build build --config Debug --parallel \\$env:NUMBER_OF_PROCESSORS\"; else cmake --build build/Debug --config Debug --parallel $(nproc); fi )"
238238
],
239239
"options": {
240240
"cwd": "${workspaceFolder}"
@@ -263,7 +263,7 @@
263263
"args": [
264264
"-l",
265265
"-c",
266-
"( if [[ $(pwd) =~ ^/mnt ]]; then powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'cmake --build build --config Release --parallel $env:NUMBER_OF_PROCESSORS'; else cmake --build build/Release --config Release --parallel $(nproc); fi )"
266+
"( if [[ $(pwd) =~ ^/mnt ]]; then powershell.exe -NoProfile -ExecutionPolicy Bypass -Command \"cmake --build build --config Release --parallel \\$env:NUMBER_OF_PROCESSORS\"; else cmake --build build/Release --config Release --parallel $(nproc); fi )"
267267
],
268268
"options": {
269269
"cwd": "${workspaceFolder}"
@@ -292,7 +292,7 @@
292292
"args": [
293293
"-l",
294294
"-c",
295-
"( if [[ $(pwd) =~ ^/mnt ]]; then powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'cmake --build build_shared --config Debug --parallel $env:NUMBER_OF_PROCESSORS'; else cmake --build build_shared/Debug --config Debug --parallel $(nproc); fi )"
295+
"( if [[ $(pwd) =~ ^/mnt ]]; then powershell.exe -NoProfile -ExecutionPolicy Bypass -Command \"cmake --build build_shared --config Debug --parallel \\$env:NUMBER_OF_PROCESSORS\"; else cmake --build build_shared/Debug --config Debug --parallel $(nproc); fi )"
296296
],
297297
"options": {
298298
"cwd": "${workspaceFolder}"
@@ -321,7 +321,7 @@
321321
"args": [
322322
"-l",
323323
"-c",
324-
"( if [[ $(pwd) =~ ^/mnt ]]; then powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'cmake --build build_shared --config Release --parallel $env:NUMBER_OF_PROCESSORS'; else cmake --build build_shared/Release --config Release --parallel $(nproc); fi )"
324+
"( if [[ $(pwd) =~ ^/mnt ]]; then powershell.exe -NoProfile -ExecutionPolicy Bypass -Command \"cmake --build build_shared --config Release --parallel \\$env:NUMBER_OF_PROCESSORS\"; else cmake --build build_shared/Release --config Release --parallel $(nproc); fi )"
325325
],
326326
"options": {
327327
"cwd": "${workspaceFolder}"
@@ -475,7 +475,8 @@
475475
"command": "bash",
476476
"args": [
477477
"-l",
478-
"format_all.sh"
478+
"-c",
479+
"./format_all.sh"
479480
],
480481
"options": {
481482
"cwd": "${workspaceFolder}/scripts"
@@ -488,8 +489,8 @@
488489
"command": "bash",
489490
"args": [
490491
"-l",
491-
"run_tests.sh",
492-
"--functional"
492+
"-c",
493+
"./run_tests.sh --functional"
493494
],
494495
"options": {
495496
"cwd": "${workspaceFolder}/scripts"
@@ -503,9 +504,8 @@
503504
"command": "bash",
504505
"args": [
505506
"-l",
506-
"run_tests.sh",
507-
"--functional",
508-
"--exit-when-failed",
507+
"-c",
508+
"./run_tests.sh --functional --exit-when-failed"
509509
],
510510
"options": {
511511
"cwd": "${workspaceFolder}/scripts"
@@ -519,8 +519,8 @@
519519
"command": "bash",
520520
"args": [
521521
"-l",
522-
"run_tests.sh",
523-
"--performance"
522+
"-c",
523+
"./run_tests.sh --performance"
524524
],
525525
"options": {
526526
"cwd": "${workspaceFolder}/scripts"
@@ -534,8 +534,8 @@
534534
"command": "bash",
535535
"args": [
536536
"-l",
537-
"run_tests.sh",
538-
"--shuffle"
537+
"-c",
538+
"./run_tests.sh --shuffle"
539539
],
540540
"options": {
541541
"cwd": "${workspaceFolder}/scripts"
@@ -549,9 +549,8 @@
549549
"command": "bash",
550550
"args": [
551551
"-l",
552-
"run_tests.sh",
553-
"--shuffle",
554-
"--exit-when-failed"
552+
"-c",
553+
"./run_tests.sh --shuffle --exit-when-failed"
555554
],
556555
"options": {
557556
"cwd": "${workspaceFolder}/scripts"
@@ -565,8 +564,8 @@
565564
"command": "bash",
566565
"args": [
567566
"-l",
568-
"run_tests.sh",
569-
"--video"
567+
"-c",
568+
"./run_tests.sh --video"
570569
],
571570
"options": {
572571
"cwd": "${workspaceFolder}/scripts"

0 commit comments

Comments
 (0)