codimd_docs/update.sh

9 lines
238 B
Bash
Executable File

#!/bin/sh
wget -q -O plenum.md "https://md.ccc-mannheim.de/9vP-toraQhOONftDOFuQtw/download"
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
git commit -m "bot update" *.md
git remote | xargs -L1 git push --all
fi