fix(run): escape quotes in Flutter Run Android command for proper execution
This commit is contained in:
parent
8975a6976e
commit
a576cdd430
1 changed files with 1 additions and 1 deletions
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
|
|
@ -81,7 +81,7 @@
|
||||||
"command": "bash",
|
"command": "bash",
|
||||||
"args": [
|
"args": [
|
||||||
"-lc",
|
"-lc",
|
||||||
"device=$(flutter devices --machine | jq -r '.[] | select(.targetPlatform | startswith(\"android\")) | .id' | head -n 1) && [ -n \"$device\" ] && flutter run -d \"$device\" --dart-define-from-file=.env/flutter_defines.json || (echo 'No Android device found.' >&2; exit 1)"
|
"device=$(flutter devices --machine | jq -r \".[] | select(.targetPlatform | startswith(\\\"android\\\")) | .id\" | head -n 1) && [ -n \"$device\" ] && flutter run -d \"$device\" --dart-define-from-file=.env/flutter_defines.json || (echo \"No Android device found.\" >&2; exit 1)"
|
||||||
],
|
],
|
||||||
"group": "build",
|
"group": "build",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue