mirror of
https://github.com/kaboomserver/framework.git
synced 2024-05-21 20:11:24 +00:00
Make schematic script safer
This commit is contained in:
parent
1a8f8bfbc6
commit
5ba79b4831
|
@ -6,11 +6,14 @@
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
ssh-keyscan github.com >> .ssh/known_hosts
|
ssh-keyscan github.com >> .ssh/known_hosts
|
||||||
|
folder=~/server/plugins/FastAsyncWorldEdit/schematics/
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
git clone git@github.com:kaboomserver/schematics.git ~/server/plugins/FastAsyncWorldEdit/schematics/
|
if [ ! -d "$folder" ]; then
|
||||||
cd ~/server/plugins/FastAsyncWorldEdit/schematics/
|
git clone --depth 1 git@github.com:kaboomserver/schematics.git $folder
|
||||||
if [ "$(git add $(git ls-files -o) -v)" ]; then
|
fi
|
||||||
|
|
||||||
|
if [ "$(cd $folder && git add $(git ls-files -o) -v)" ]; then
|
||||||
git -c user.name='kaboom' -c user.email='kaboom.pw' commit -m "Add new schematics"
|
git -c user.name='kaboom' -c user.email='kaboom.pw' commit -m "Add new schematics"
|
||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue