From e60296b215955f9ed39e52b1b7929bdb58852ed5 Mon Sep 17 00:00:00 2001 From: Barbara Carrera <78046677+barbra-bio@users.noreply.github.com> Date: Fri, 28 Oct 2022 17:24:17 -0300 Subject: [PATCH] fix your wea --- scripts/sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync.sh b/scripts/sync.sh index 2420086..c627e4b 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -3,7 +3,7 @@ set -e SOURCE=/var/www/chevereto/ TARGET=/var/www/html/ EXCLUDE="\.git|\.DS_Store|\.well-known|\.vscode|\/app\/vendor|\/app\/env\.php|\/app\/importer\/jobs" -rsync --mkpath -a "${SOURCE}"app/vendor/ "${TARGET}"app/vendor/ +[ -d "${SOURCE}"app/vendor/ ] && rsync --mkpath -a "${SOURCE}"app/vendor/ "${TARGET}"app/vendor cp "${SOURCE}".gitignore "${TARGET}".gitignore function sync() { rsync -r -I -og \