Fix interpolation in addVCVARSEnv()

This commit is contained in:
Benoit Daloze
2020-09-03 13:42:03 +02:00
parent 9ec93a2370
commit 25ccf0aad8
2 changed files with 2 additions and 2 deletions
Generated Vendored
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)