Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple committed Nov 15, 2019
1 parent 2f41331 commit 708b724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/exec/__tests__/exec.test.ts
Expand Up @@ -575,7 +575,7 @@ describe('@actions/exec', () => {
it('execs .cmd from path (Windows)', async () => {
// this test validates whether a .cmd is resolved from the PATH when the extension is not specified
const cmd = 'print-args-cmd' // note, not print-args-cmd.cmd
const cmdPath = path.join(__dirname, 'scripts', cmd + '.cmd')
const cmdPath = path.join(__dirname, 'scripts', `${cmd}.cmd`)
const args: string[] = ['my arg 1', 'my arg 2']
const outStream = new StringStream()
let output = ''
Expand All @@ -588,7 +588,7 @@ describe('@actions/exec', () => {
}
}

let originalPath = process.env['Path']
const originalPath = process.env['Path']
try {
process.env['Path'] = `${originalPath};${path.dirname(cmdPath)}`
const exitCode = await exec.exec(`${cmd}`, args, options)
Expand Down

0 comments on commit 708b724

Please sign in to comment.