summaryrefslogtreecommitdiff
path: root/post-install.d/50vcs-commit
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-17 13:42:25 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-17 13:42:25 -0400
commit3738e331666e572c677e258f080382651e7cab59 (patch)
tree518283a44770f6925291a6332212de3c948ae43e /post-install.d/50vcs-commit
parentcb01f4f89df7384d1b5593e3461786ab931aa52f (diff)
Handle nonzero exit status when building package list diff.
Diffstat (limited to 'post-install.d/50vcs-commit')
-rwxr-xr-xpost-install.d/50vcs-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/post-install.d/50vcs-commit b/post-install.d/50vcs-commit
index 1b88da7..12fd187 100755
--- a/post-install.d/50vcs-commit
+++ b/post-install.d/50vcs-commit
@@ -9,7 +9,7 @@ if etckeeper unclean; then
message="committing changes in /etc after $HIGHLEVEL_PACKAGE_MANAGER run"
if [ -e $pl.pre-install ]; then
- diff="$(etckeeper list-installed | diff -U0 $pl.pre-install - | tail -n+4 | egrep '^[-+]')"
+ diff="$(etckeeper list-installed | diff -U0 $pl.pre-install - | tail -n+4 | egrep '^[-+]')" || true
if [ -n "$diff" ]; then
message="$message$NL${NL}Package changes:$NL$diff"
fi