Merge branch 'mindoc-org:master' into master

pull/726/head^2
玖亖伍 2021-09-09 14:45:54 +08:00 committed by GitHub
commit 5cc4e14fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -15,7 +15,10 @@ export HOST_DIR=/mindoc-sync-host
export DOCKER_DIR=/mindoc export DOCKER_DIR=/mindoc
function doSyncCopy() { function doSyncCopy() {
rclone $SYNC_ACTION --progress --exclude .git* --exclude .git/** "${1}" "${2}" if [ -d "${1}" ]
then
rclone $SYNC_ACTION --progress --exclude .git* --exclude .git/** "${1}" "${2}"
fi
} }
function doSync() { function doSync() {
@ -37,4 +40,4 @@ if ! [ -z "${SYNC_LIST}" ]; then
for item in $SYNC_LIST; do for item in $SYNC_LIST; do
doSync "${item}" doSync "${item}"
done done
fi fi