Skip to content

Commit

Permalink
Merge pull request #138 from sevkin/137
Browse files Browse the repository at this point in the history
check before calling platform-specific code
  • Loading branch information
Geequlim authored Jan 26, 2020
2 parents 8d8f5c2 + c41bd64 commit cf22aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/godot-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class GodotTools {
let cmdEsc = `"${cmd}"`;
const shell_plugin = vscode.workspace.getConfiguration("terminal.integrated.shell");
let shell = shell_plugin ? shell_plugin.get("windows", "") || "" : "";
if (shell.endsWith("powershell.exe") && process.platform === "win32") {
if (process.platform === "win32" && shell.endsWith("powershell.exe")) {
cmdEsc = `&${cmdEsc}`;
}
return cmdEsc;
Expand Down

0 comments on commit cf22aa3

Please sign in to comment.