With newline
This commit is contained in:
parent
4b2b729981
commit
90c2393557
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -87,7 +87,7 @@ function main() {
|
||||
}
|
||||
const sshKey = core.getInput('ssh-key', { required: true });
|
||||
core.info(`sshKey: ${sshKey.length}`);
|
||||
fs.writeFileSync('ssh_key', sshKey, { flag: 'w+', mode: "0600" });
|
||||
fs.writeFileSync('ssh_key', `${sshKey}\n`, { flag: 'w+', mode: "0600" });
|
||||
const pipedCommand = `pwd | ls -l`;
|
||||
yield exec.exec('sh', ['-c', `${pipedCommand}`]);
|
||||
yield exec.exec('cat', ['ssh_key']);
|
||||
|
@ -53,7 +53,7 @@ async function main() {
|
||||
|
||||
const sshKey = core.getInput('ssh-key', {required: true});
|
||||
core.info(`sshKey: ${sshKey.length}`);
|
||||
fs.writeFileSync('ssh_key', sshKey, {flag: 'w+', mode: "0600"});
|
||||
fs.writeFileSync('ssh_key', `${sshKey}\n`, {flag: 'w+', mode: "0600"});
|
||||
|
||||
const pipedCommand = `pwd | ls -l`;
|
||||
await exec.exec('sh', ['-c', `${pipedCommand}`]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user