diff --git a/dist/index.js b/dist/index.js index c046fe0..a32636d 100755 --- a/dist/index.js +++ b/dist/index.js @@ -609,7 +609,7 @@ const sshDeploy = (() => { try { // RSYNC COMMAND nodeRsync({ - src, dest, args, privateKey, port, exclude, ...defaultOptions + src, dest, args, privateKey, port, excludeFirst: exclude, ...defaultOptions }, (error, stdout, stderr, cmd) => { if (error) { console.error('⚠️ [Rsync] error: ', error.message); diff --git a/src/index.js b/src/index.js index bfef783..123fcb4 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ const sshDeploy = (() => { try { // RSYNC COMMAND nodeRsync({ - src, dest, args, privateKey, port, exclude, ...defaultOptions + src, dest, args, privateKey, port, excludeFirst: exclude, ...defaultOptions }, (error, stdout, stderr, cmd) => { if (error) { console.error('⚠️ [Rsync] error: ', error.message);