mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-14 15:04:20 +02:00
Fix interpolation in addVCVARSEnv()
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user