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 \