mirror of
https://github.com/easingthemes/ssh-deploy
synced 2025-04-19 22:53:15 +00:00
log remote script content
This commit is contained in:
parent
1e6acacd13
commit
ce6f4a562e
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -15,7 +15,7 @@ const remoteCmd = async (content, label, isRequired) => new Promise((resolve, re
|
||||
const filename = `local_ssh_script-${label}.sh`;
|
||||
try {
|
||||
writeToFile({ dir: githubWorkspace, filename, content });
|
||||
console.log(`Executing remote script: ssh -i ${privateKey} ${sshServer}`);
|
||||
console.log(`Executing remote script: ssh -i ${privateKey} ${sshServer}`, content);
|
||||
exec(`DEBIAN_FRONTEND=noninteractive ssh -i ${privateKey} ${sshServer} 'RSYNC_STDOUT=${process.env.RSYNC_STDOUT} bash -s' < ${filename}`, (err, data, stderr) => {
|
||||
if (err) {
|
||||
const message = `⚠️ [CMD] Remote script failed: ${err.message}`;
|
||||
|
Loading…
Reference in New Issue
Block a user