summaryrefslogtreecommitdiff
path: root/pre-apt.d/50uncommitted-changes
diff options
context:
space:
mode:
Diffstat (limited to 'pre-apt.d/50uncommitted-changes')
-rwxr-xr-xpre-apt.d/50uncommitted-changes2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-apt.d/50uncommitted-changes b/pre-apt.d/50uncommitted-changes
index e394db1..dd8db13 100755
--- a/pre-apt.d/50uncommitted-changes
+++ b/pre-apt.d/50uncommitted-changes
@@ -1,6 +1,6 @@
#!/bin/sh
set -e
-if ! LANG=C git-status 2>&1 | grep -q "working directory clean"; then
+if [ -d .git ] && ! LANG=C git-status 2>&1 | grep -q "working directory clean"; then
. /usr/share/debconf/confmodule
db_capb escape
db_title etckeeper