Skip to content

Commit da67d99

Browse files
authored
Merge pull request #125 from NativeScript/yosifov/fix-win-recognize
Fix check for os win - now returns true for mac - 'darwin'
2 parents 681dfe2 + b1dadb2 commit da67d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/project/nativeScriptCli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class NativeScriptCli {
5757

5858
// always default to cmd on Windows
5959
// workaround for issue #121 https://github.com/NativeScript/nativescript-vscode-extension/issues/121
60-
if (os.platform().indexOf("win") != -1) {
60+
if (utils.getPlatform() === utils.Platform.Windows) {
6161
this._shellPath = "cmd.exe";
6262
}
6363

0 commit comments

Comments
 (0)