Adapt the schematic uploader to this gitea instance
And my forked repository and user with a different name for that matter
This commit is contained in:
parent
32479825d4
commit
01e56b2d77
1 changed files with 3 additions and 3 deletions
|
@ -6,20 +6,20 @@
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
folder=~/server/plugins/FastAsyncWorldEdit/schematics/
|
folder=~/server/plugins/FastAsyncWorldEdit/schematics/
|
||||||
hostname=github.com
|
hostname=chipmunk.land
|
||||||
|
|
||||||
ssh-keygen -R $hostname
|
ssh-keygen -R $hostname
|
||||||
ssh-keyscan -H $hostname >> ~/.ssh/known_hosts
|
ssh-keyscan -H $hostname >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if [ ! -d "$folder" ]; then
|
if [ ! -d "$folder" ]; then
|
||||||
git clone --depth 1 git@$hostname:kaboomserver/schematics.git $folder
|
git clone --depth 1 gitea@$hostname:chipmunk.land-kaboomserver/schematics.git $folder
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $folder
|
cd $folder
|
||||||
|
|
||||||
if [ "$(git add $(git ls-files -o) -v)" ]; then
|
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 -c user.name='Chipmunk Kaboom Schematic Uploader' -c user.email='kaboom-schems@chipmunk.land' commit -m "Add new schematics"
|
||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in a new issue