Update sync_host.sh

修复目录容器内不存在导致备份脚本失败的bug
This commit is contained in:
玖亖伍 2021-08-31 09:59:33 +08:00 committed by GitHub
parent 097af0077e
commit acdd2e2f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,10 @@ export HOST_DIR=/mindoc-sync-host
export DOCKER_DIR=/mindoc
function doSyncCopy() {
if [ -d "${1}" ]
then
rclone $SYNC_ACTION --progress --exclude .git* --exclude .git/** "${1}" "${2}"
fi
}
function doSync() {