Fix very silly mistake

This commit is contained in:
mathias 2018-07-06 00:46:18 +03:00
parent 8869ce5ff1
commit b9850e21d2

View file

@ -6,7 +6,7 @@ chmod 400 $(find . ! -path "*/.*" ! -path "./worlds/world/region/*" -type f)
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
if [ "$(ssh -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x serv@kaboom.pw 'du -s sync/worlds/' | awk '{print $1}')" -gt "500000" ]; then
ssh -o StrictHostKeyChecking=no serv@kaboom.pw 'cd sync/; find . ! -path './plugins/WorldEdit/schematics' -type d -exec rm -rf {} +'
ssh -o StrictHostKeyChecking=no serv@kaboom.pw 'cd sync/ && find . ! -path './plugins/WorldEdit/schematics' -type d -exec rm -rf {} +'
fi
rsync -Waqz -e "ssh -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x" --exclude-from="bin/excludes" serv@kaboom.pw:sync/ .