We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33fd06 commit e845eaeCopy full SHA for e845eae
Tasks/SSH/ssh.ts
@@ -59,7 +59,9 @@ async function run() {
59
var inlineScript: string = tl.getInput('inline', true);
60
const scriptHeader:string = '#!';
61
if (inlineScript && !inlineScript.startsWith(scriptHeader)) {
62
- inlineScript = '#!/bin/bash' + os.EOL + inlineScript;
+ const bashHeader: string = '#!/bin/bash';
63
+ tl.debug('No script header detected. Adding: ' + bashHeader);
64
+ inlineScript = bashHeader + os.EOL + inlineScript;
65
}
66
scriptFile = path.join(os.tmpdir(), 'sshscript_' + new Date().getTime()); // default name
67
try {
0 commit comments