Simplify schematic upload

This commit is contained in:
mathias 2019-02-23 14:37:42 +02:00
parent 9bb982c82d
commit 8394f49432

View file

@ -20,12 +20,10 @@ done'
./tmux new -d -s schematics 'while true; do
cd $HOME/plugins/WorldEdit/schematics/
if [ "git status --porcelain" ]; then
if [ "git diff --name-only --diff-filter=A HEAD" ]; then
git add --all
git -c user.name='kaboom' -c user.email='kaboom' commit -m "Add new schematics"
git push
else
git ls-files -z | xargs -0 git update-index --assume-unchanged
fi
sleep 1
done'