summaryrefslogtreecommitdiff
path: root/post-install.d/50git-commit
blob: 78247ca23640e93016ce10f405de7738b2a3dc1c (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -e

if [ -d .git ]; then
	message="committing changes after $HIGHLEVEL_PACKAGE_MANAGER run"

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