summaryrefslogtreecommitdiff
path: root/update-gitmeta
blob: ab83b2ad4d67d3388ab8246e2a8873d3792dcf1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
set -e
message="$1"

cd
export GIT_DIR="$PWD/.gitmeta"
if [[ -n $(git status -s .) ]]; then
	git add .
	git commit -m "$message"
fi
git pull
git push