diff --git a/script/schematics.sh b/script/schematics.sh index dd6a593..82efea6 100755 --- a/script/schematics.sh +++ b/script/schematics.sh @@ -13,7 +13,9 @@ while true; do git clone --depth 1 git@github.com:kaboomserver/schematics.git $folder fi - if [ "$(cd $folder && git add $(git ls-files -o) -v)" ]; then + cd $folder + + 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