Merge pull request #35 from easingthemes/feature/RSYNC-exclude-option

RSYNC use excludeFirst instead of exclude
This commit is contained in:
Dragan Filipović 2021-03-24 18:50:40 +01:00 committed by GitHub
commit 9ab3993555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);