Skip to content

Commit 1e3abdd

Browse files
authored
Fixed: "tns emulate android" fails with a space in the name of the home directory (#2413)
1 parent 941400e commit 1e3abdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/emulator-platform-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class EmulatorPlatformService implements IEmulatorPlatformService {
165165
public getAndroidEmulators(): IFuture<IEmulatorInfo[]> {
166166
return (() => {
167167
let androidPath = path.join(process.env.ANDROID_HOME, "tools", "android");
168-
let text:string = this.$childProcess.exec(`${androidPath} list avd`).wait();
168+
let text:string = this.$childProcess.exec(`"${androidPath}" list avd`).wait();
169169
let notLoadedIndex = text.indexOf("The following");
170170
if (notLoadedIndex > 0) {
171171
text = text.substring(0, notLoadedIndex);

0 commit comments

Comments
 (0)