Skip to content

Commit

Permalink
Fixed failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EzzhevNikita committed Sep 18, 2020
1 parent 7a526f4 commit 1682336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tasks/BashV3/bash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function run() {
if (old_source_behavior) {
contents = `. '${targetFilePath.replace(/'/g, "'\\''")}' ${input_arguments}`.trim();
} else {
contents = `exec bash '${targetFilePath.replace(/'/g, "'\\''")}' ${input_arguments}`.trim();
contents = `${process.platform == 'win32' ? "" : "exec "}bash '${targetFilePath.replace(/'/g, "'\\''")}' ${input_arguments}`.trim();
}
console.log(tl.loc('JS_FormattedCommand', contents));
}
Expand Down Expand Up @@ -110,7 +110,6 @@ async function run() {
}

// Create the tool runner.
console.log('========================== Starting Command Output ===========================');
let bash = tl.tool(bashPath);
if (noProfile) {
bash.arg('--noprofile');
Expand All @@ -129,6 +128,7 @@ async function run() {
};

process.on("SIGINT", () => {
console.log('-------------------------------SIGINT---------------------------------');
bash.killChildProcess();
});

Expand Down

0 comments on commit 1682336

Please sign in to comment.