Skip to content

Commit

Permalink
Merge pull request #1 from spartacrypt/master
Browse files Browse the repository at this point in the history
Fix bug on windows
  • Loading branch information
ebekker authored Jan 17, 2020
2 parents 4208a41 + ebb7e8a commit 86041cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ const exec = __webpack_require__(871);

async function run() {
try {
const pwshFolder = __dirname.replace(/\/_init$/, '');
const pwshScript = `${pwshFolder}/action.ps1`
const pwshScript = __dirname.replace(/_init$/, 'action.ps1');
await exec.exec('pwsh', [ '-f', pwshScript ]);
} catch (error) {
core.setFailed(error.message);
Expand Down Expand Up @@ -969,4 +968,4 @@ exports.exec = exec;

/***/ })

/******/ });
/******/ });

0 comments on commit 86041cc

Please sign in to comment.