blob: 42d58597c99344340416a1281b24a5a2d3982b44 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
cd "$HOME/.local/share/calcurse" >/dev/null 2>&1 || return
if [ -d .git ] && command -v git >/dev/null; then
git add apts todo
if ! git diff-index --quiet --cached HEAD; then
git commit -m "Automatic commit by the post-save hook"
fi
git push || true
fi
|