RSYNC use excludeFirst instead of exclude

main
Dragan Filipovic 2021-03-24 18:48:12 +01:00
parent a27b8667de
commit 07265c8c95
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -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);

View File

@ -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);