Skip to content

Commit

Permalink
Add exec to script files by default
Browse files Browse the repository at this point in the history
  • Loading branch information
EzzhevNikita committed Sep 18, 2020
1 parent 87026ba commit 7a526f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tasks/CmdLineV2/cmdline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ async function run() {
let failOnStderr = tl.getBoolInput('failOnStderr', false);
let script: string = tl.getInput('script', false) || '';
let workingDirectory = tl.getPathInput('workingDirectory', /*required*/ true, /*check*/ true);

if (fs.existsSync(script)) {
script = `exec ${script}`;
}

// Write the script to disk.
console.log(tl.loc('GeneratingScript'));
Expand Down

0 comments on commit 7a526f4

Please sign in to comment.