framework/script/schematics.sh

17 lines
460 B
Bash
Raw Normal View History

2020-04-16 15:08:07 -04:00
#!/bin/sh
# Schematics are saved in a separate git repository.
# Only non-existing files are added to the repository.
set -x
while true; do
2020-04-16 15:17:16 -04:00
git clone git@github.com:kaboomserver/schematics.git ~/server/plugins/FastAsyncWorldEdit/schematics/
2020-04-16 15:08:07 -04:00
cd ~/server/plugins/FastAsyncWorldEdit/schematics/
if [ "$(git add $(git ls-files -o) -v)" ]; then
git -c user.name='kaboom' -c user.email='kaboom.pw' commit -m "Add new schematics"
git push
fi
sleep 1
done