Skip to content

Commit

Permalink
fix exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Jul 18, 2022
1 parent fb76e6f commit fbc82e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -139,9 +139,9 @@ async function main() {
try {
var usesh = core.getInput("usesh").toLowerCase() == "true";
if (usesh) {
await execSSHSH("cd $GITHUB_WORKSPACE && ( " + run +" )");
await execSSHSH("cd $GITHUB_WORKSPACE;\n" + run);
} else {
await execSSH("cd $GITHUB_WORKSPACE && ( " + run +" )");
await execSSH("cd $GITHUB_WORKSPACE;\n" + run);
}

} catch (err) {
Expand Down

0 comments on commit fbc82e7

Please sign in to comment.