mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-06-28 15:45:35 +08:00
Merge branch 'master' of https://github.com.cnpmjs.org/gsw945/mindoc into master
This commit is contained in:
commit
7a6a0c5ec0
@ -15,7 +15,10 @@ export HOST_DIR=/mindoc-sync-host
|
||||
export DOCKER_DIR=/mindoc
|
||||
|
||||
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() {
|
||||
@ -37,4 +40,4 @@ if ! [ -z "${SYNC_LIST}" ]; then
|
||||
for item in $SYNC_LIST; do
|
||||
doSync "${item}"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user