Skip to content

Commit

Permalink
fix: Add --noprofile to the bash invocation
Browse files Browse the repository at this point in the history
Otherwise it fails on

```
 /etc/bashrc: line 4: __ETC_BASHRC_SOURCED: unbound variable
```
  • Loading branch information
Profpatsch committed May 12, 2022
1 parent b1b2f0e commit a226453
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,14 @@ const tr = __importStar(__webpack_require__(9));
*/
function exec(commandLine, args, options) {
return __awaiter(this, void 0, void 0, function* () {
const runner = new tr.ToolRunner("bash", ["-euo", "pipefail", "-c", commandLine], options);
const runner = new tr.ToolRunner(
"bash",
[ "--noprofile",
"-euo", "pipefail",
"-c", commandLine
],
options
);
return runner.exec();
});
}
Expand Down

0 comments on commit a226453

Please sign in to comment.