fix(run): escape quotes in Flutter Run Android command for proper execution

This commit is contained in:
Lukas Müllner 2026-03-10 06:58:08 +01:00
parent 8975a6976e
commit a576cdd430

2
.vscode/tasks.json vendored
View file

@ -81,7 +81,7 @@
"command": "bash",
"args": [
"-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",
"problemMatcher": []