From 25ccf0aad873a038badd16baaf2c97fadf31b4b8 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 3 Sep 2020 12:28:16 +0200 Subject: [PATCH] Fix interpolation in addVCVARSEnv() --- dist/index.js | 2 +- windows.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8f9189e..62e2090 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27783,7 +27783,7 @@ function addVCVARSEnv() { for (let [k, v] of newEnv) { if (process.env[k] !== v) { if (/^Path$/i.test(k)) { - const newPathStr = v.replace(`$(path.delimiter)${process.env['Path']}`, '') + const newPathStr = v.replace(`${path.delimiter}${process.env['Path']}`, '') newPathEntries = newPathStr.split(path.delimiter) } else { core.exportVariable(k, v) diff --git a/windows.js b/windows.js index fcc11f4..729855b 100644 --- a/windows.js +++ b/windows.js @@ -123,7 +123,7 @@ export function addVCVARSEnv() { for (let [k, v] of newEnv) { if (process.env[k] !== v) { if (/^Path$/i.test(k)) { - const newPathStr = v.replace(`$(path.delimiter)${process.env['Path']}`, '') + const newPathStr = v.replace(`${path.delimiter}${process.env['Path']}`, '') newPathEntries = newPathStr.split(path.delimiter) } else { core.exportVariable(k, v)