summaryrefslogtreecommitdiff
path: root/post-install.d/50vcs-commit
diff options
context:
space:
mode:
Diffstat (limited to 'post-install.d/50vcs-commit')
-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 12fd187..6cb6bd1 100755
--- a/post-install.d/50vcs-commit
+++ b/post-install.d/50vcs-commit
@@ -13,8 +13,11 @@ if etckeeper unclean; then
if [ -n "$diff" ]; then
message="$message$NL${NL}Package changes:$NL$diff"
fi
- rm -f $pl.pre-install
fi
etckeeper commit "$(printf "$message")"
fi
+
+if [ -e $pl.pre-install ]; then
+ rm -f $pl.pre-install
+fi