mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-04-28 11:00:42 -04:00
Added cmd to rsync error output
This commit is contained in:
parent
37e21b5b6b
commit
00e4d7e856
2 changed files with 6 additions and 4 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -492,8 +492,9 @@ const sshDeploy = (() => {
|
|||
nodeRsync({ src, dest, args, privateKey, ssh: true, port, sshCmdArgs: ['-o StrictHostKeyChecking=no'], recursive: true }, (error, stdout, stderr, cmd) => {
|
||||
if (error) {
|
||||
console.error('⚠️ Rsync error', error.message);
|
||||
console.log(stderr);
|
||||
console.log(stdout);
|
||||
console.log('stderr: ', stderr);
|
||||
console.log('stdout: ', stdout);
|
||||
console.log('cmd: ', cmd);
|
||||
process.abort();
|
||||
} else {
|
||||
console.log("✅ Rsync finished.", stdout);
|
||||
|
|
|
@ -17,8 +17,9 @@ const sshDeploy = (() => {
|
|||
nodeRsync({ src, dest, args, privateKey, ssh: true, port, sshCmdArgs: ['-o StrictHostKeyChecking=no'], recursive: true }, (error, stdout, stderr, cmd) => {
|
||||
if (error) {
|
||||
console.error('⚠️ Rsync error', error.message);
|
||||
console.log(stderr);
|
||||
console.log(stdout);
|
||||
console.log('stderr: ', stderr);
|
||||
console.log('stdout: ', stdout);
|
||||
console.log('cmd: ', cmd);
|
||||
process.abort();
|
||||
} else {
|
||||
console.log("✅ Rsync finished.", stdout);
|
||||
|
|
Loading…
Add table
Reference in a new issue