summaryrefslogtreecommitdiff
path: root/post-install.d
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-25 21:09:45 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-25 21:09:45 -0400
commitf3e2540ca0a1963a7d0cdc15036b0a0912a2edd8 (patch)
tree6e7bd25d9f112dafab1e8bbf1c17dbb014517a41 /post-install.d
parentc761fd145e5d56507ea8d5546ae004f3836b4b5b (diff)
clean up the commit message
Diffstat (limited to 'post-install.d')
-rwxr-xr-xpost-install.d/50vcs-commit5
1 files changed, 4 insertions, 1 deletions
diff --git a/post-install.d/50vcs-commit b/post-install.d/50vcs-commit
index f223029..1b88da7 100755
--- a/post-install.d/50vcs-commit
+++ b/post-install.d/50vcs-commit
@@ -9,7 +9,10 @@ if etckeeper unclean; then
message="committing changes in /etc after $HIGHLEVEL_PACKAGE_MANAGER run"
if [ -e $pl.pre-install ]; then
- message="$message$NL$(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 '^[-+]')"
+ if [ -n "$diff" ]; then
+ message="$message$NL${NL}Package changes:$NL$diff"
+ fi
rm -f $pl.pre-install
fi