Skip to content

Commit

Permalink
Merge pull request #1 from Ash258/patch-1
Browse files Browse the repository at this point in the history
fix: replace forward and back slashes
  • Loading branch information
ebekker authored Dec 31, 2019
2 parents 28bddea + adbfa9d commit b19583a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invoke-pwsh.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const exec = require('@actions/exec');

async function run() {
try {
const pwshFolder = __dirname.replace(/\/_init$/, '');
const pwshFolder = __dirname.replace(/[/\\]_init$/, '');
const pwshScript = `${pwshFolder}/action.ps1`
await exec.exec('pwsh', [ '-f', pwshScript ]);
} catch (error) {
Expand Down

0 comments on commit b19583a

Please sign in to comment.