From e8d24444be6482054453dc7d08ee1412eecc387f Mon Sep 17 00:00:00 2001 From: mathiascode Date: Thu, 16 Jul 2020 06:31:07 +0300 Subject: [PATCH] Actually enter schematic folder when pushing files --- script/schematics.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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