summaryrefslogtreecommitdiff
path: root/pre-install.d
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-29 12:56:25 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-29 12:56:25 -0400
commitfd82d038ded28ec59fdb69bbd959b4031915273c (patch)
tree1cb44c0a5c04ab635d5cac95c10253088123fd3a /pre-install.d
parent3262d47732044603b7b2e391a56c0874768c0fa0 (diff)
Allow AVOID_COMMIT_BEFORE_INSTALL to be set to zero to disable.
Diffstat (limited to 'pre-install.d')
-rwxr-xr-xpre-install.d/50uncommitted-changes2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-install.d/50uncommitted-changes b/pre-install.d/50uncommitted-changes
index a5e69d4..47750ac 100755
--- a/pre-install.d/50uncommitted-changes
+++ b/pre-install.d/50uncommitted-changes
@@ -10,7 +10,7 @@ if [ "$1" = "fail-debconf" ]; then
fi
if etckeeper unclean; then
- if [ "$AVOID_COMMIT_BEFORE_INSTALL" ]; then
+ if [ "$AVOID_COMMIT_BEFORE_INSTALL" = 1 ]; then
echo "" >&2
echo "** etckeeper detected uncommitted changes in /etc prior to $HIGHLEVEL_PACKAGE_MANAGER run" >&2
echo "** Aborting $HIGHLEVEL_PACKAGE_MANAGER run. Manually commit and restart." >&2