mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-04-28 19:00:44 -04:00
log remote script content
This commit is contained in:
parent
1e6acacd13
commit
ce6f4a562e
2 changed files with 2 additions and 2 deletions
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…
Add table
Reference in a new issue