diff options
Diffstat (limited to 'post-apt.d/75git-commit')
-rwxr-xr-x | post-apt.d/75git-commit | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/post-apt.d/75git-commit b/post-apt.d/75git-commit index 0a84fbd..30ef0f2 100755 --- a/post-apt.d/75git-commit +++ b/post-apt.d/75git-commit @@ -5,6 +5,5 @@ set -e # that info in the commit message message="committing changes after apt run" -if ! git commit -m "$message"; then - echo "etckeeper warning: git-commit failed" -fi +# ignore exit code since it exits nonzero if there is nothing to do +git commit -m "$message" || true |