Skip to content

Commit 81da83f

Browse files
committed
fix install.sh in folder with spaces
1 parent 2b516a5 commit 81da83f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compilers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ async function showCompilerInstallationPrompt(name: string, buttons: (InstallBut
316316
});
317317
}
318318

319+
listCompilersCache = undefined; // clear cache for next list
319320
let reloadBtn = "Reload Window";
320321
vscode.window.showInformationMessage("When finished installing, reload the window and setup the compiler in the getting started guide.", reloadBtn)
321322
.then(async btn => {
@@ -336,7 +337,8 @@ async function showCompilerInstallationPrompt(name: string, buttons: (InstallBut
336337
} else if ((<LabelInstallShButton>selection).installSh) {
337338
let installSh = codedContext.asAbsolutePath("res/exe/install.sh").replace(/\\/g, '\\\\');
338339
let installDir = getLocalCompilersDir().replace(/\\/g, '\\\\');
339-
runTerminal(`${await testBinExists("bash")} \"${installSh}\" -p ${installDir} ${(<LabelInstallShButton>selection).installSh}`);
340+
runTerminal(`${await testBinExists("bash")} \"${installSh}\" -p "${installDir}" ${(<LabelInstallShButton>selection).installSh}`);
341+
listCompilersCache = undefined; // clear cache for next list
340342
}
341343
}
342344
});

0 commit comments

Comments
 (0)