summaryrefslogtreecommitdiff
path: root/post-apt.d/75git-commit
blob: 30ef0f20617532ca18c656e4d9dd3f5f10fe3b3a (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -e

# TODO: figure out what packages were acted on by the apt run, and include
# that info in the commit message
message="committing changes after apt run"

# ignore exit code since it exits nonzero if there is nothing to do
git commit -m "$message" || true