Skip to content

Commit 9c77d1b

Browse files
committed
Prefer path.delimiter to the hardcoded value
1 parent 2641afc commit 9c77d1b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

windows.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// https://github.com/MSP-Greg/actions-ruby/blob/master/lib/main.js
33

44
const fs = require('fs')
5+
const path = require('path')
56
const cp = require('child_process')
67
const core = require('@actions/core')
78
const exec = require('@actions/exec')
@@ -141,7 +142,7 @@ export function addVCVARSEnv() {
141142
for (let [k, v] of newEnv) {
142143
if (process.env[k] !== v) {
143144
if (k === 'Path') {
144-
newPathEntries = v.replace(process.env['Path'], '').split(';')
145+
newPathEntries = v.replace(process.env['Path'], '').split(path.delimiter)
145146
} else {
146147
core.exportVariable(k, v)
147148
}

0 commit comments

Comments
 (0)