buildpack/script/schematics.sh

18 lines
513 B
Bash
Raw Normal View History

#!/bin/sh
2019-11-30 18:05:23 +00:00
# Schematics are saved in a separate git repository, which is cloned whenever Heroku starts
# from a fresh state. Only non-existing files are added to the repository.
2019-11-30 18:51:52 +00:00
set -x
2019-11-30 18:05:23 +00:00
git clone git@github.com:kaboomserver/schematics.git $HOME/plugins/FastAsyncWorldEdit/schematics/
while true; do
cd $HOME/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