From 07265c8c95c258389d9ff2a5ba1278ec22746e49 Mon Sep 17 00:00:00 2001
From: Dragan Filipovic <dragan.filipovic@netcentric.biz>
Date: Wed, 24 Mar 2021 18:48:12 +0100
Subject: [PATCH] RSYNC use excludeFirst instead of exclude

---
 dist/index.js | 2 +-
 src/index.js  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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