Actually enter schematic folder when pushing files

This commit is contained in:
mathiascode 2020-07-16 06:31:07 +03:00
parent 5bc1042491
commit e8d24444be

View file

@ -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