mirror of
https://github.com/kaboomserver/framework.git
synced 2024-12-04 04:31:00 -05:00
18 lines
504 B
Bash
Executable file
18 lines
504 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Schematics are saved in a separate git repository.
|
|
# Only non-existing files are added to the repository.
|
|
|
|
set -x
|
|
|
|
ssh-keyscan github.com >> .ssh/known_hosts
|
|
|
|
while true; do
|
|
git clone git@github.com:kaboomserver/schematics.git ~/server/plugins/FastAsyncWorldEdit/schematics/
|
|
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
|