Skip to content

Commit

Permalink
fix: incorrect var for windows users (#29)
Browse files Browse the repository at this point in the history
* fix: incorrect var for windows users

* chore: bump v
  • Loading branch information
hugorut authored Jul 13, 2022
1 parent fe537f9 commit d637968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "infracost",
"displayName": "Infracost",
"description": "Cloud cost estimates for Terraform in your editor",
"version": "0.1.13",
"version": "0.1.14",
"publisher": "Infracost",
"license": "Apache-2.0",
"icon": "infracost-logo.png",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class Workspace {
let cmd = `INFRACOST_CLI_PLATFORM=vscode infracost breakdown --path ${projectPath} --format json --log-level info`;

if (os.platform() === 'win32') {
cmd = `cmd /C "set INFRACOST_CLI_PLATFORM=vscode && infracost breakdown --path ${path} --format json --log-level info"`;
cmd = `cmd /C "set INFRACOST_CLI_PLATFORM=vscode && infracost breakdown --path ${projectPath} --format json --log-level info"`;
}

debugLog.appendLine(`debug: running Infracost cmd ${cmd}`);
Expand Down

0 comments on commit d637968

Please sign in to comment.