Skip to content

Commit ccc33ea

Browse files
escape any spaces in the path by adding quotes
Co-authored-by: Jason Cassidy <[email protected]>
1 parent 572d489 commit ccc33ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/key-commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class ShiftA implements IKeyCommand {
8181
return;
8282
}
8383

84-
this.$childProcess.exec(`${studioPath} ${androidDir}`);
84+
this.$childProcess.exec(`"${studioPath}" "${androidDir}"`);
8585
} else if (os === "linux") {
8686
if (!fs.existsSync(`/usr/local/android-studio/bin/studio.sh`)) {
8787
this.$logger.error("Android Studio is not installed");

0 commit comments

Comments
 (0)