1 2 3 4 5 6 7 8
#!/bin/sh # Wiki update cd ~/Wiki || exit 1 [ "$(git status --porcelain)" ] && { git add .; git commit -m update; } git pull git push