diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2007-11-13 19:09:10 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2007-11-13 19:09:10 -0500 |
commit | 26a46bf2fd473122e53a3303226b093523d30bfd (patch) | |
tree | 12f7d4cd0594b371ac35f3bcf0ad4dd1a104ae8d /pre-apt.d | |
parent | 8824d34847c9ebe106c9e362b2d1af1b031217dc (diff) |
* Add tests for /etc/.git not yet existing and avoid doing bad things.
Closes: #451185
* If /etc/.git doesn't exist, display a suggestion to run etckeeper-init.
Diffstat (limited to 'pre-apt.d')
-rwxr-xr-x | pre-apt.d/50uncommitted-changes | 2 |
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 |