From d637968ae4547156c3380efef29d9e706e5f8deb Mon Sep 17 00:00:00 2001 From: Hugo Rut Date: Wed, 13 Jul 2022 11:48:45 +0100 Subject: [PATCH] fix: incorrect var for windows users (#29) * fix: incorrect var for windows users * chore: bump v --- package.json | 2 +- src/extension.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 684ef67..629ee4e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/extension.ts b/src/extension.ts index 7606cc7..ea3420f 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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}`);