From bd90bdd96e1ef36059651f68d0c3fb0a60e74d38 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 10 Nov 2007 20:08:34 -0500 Subject: use debconf for prompting pre-apt --- pre-apt.d/50uncommitted-changes | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'pre-apt.d/50uncommitted-changes') diff --git a/pre-apt.d/50uncommitted-changes b/pre-apt.d/50uncommitted-changes index c8e4736..e394db1 100755 --- a/pre-apt.d/50uncommitted-changes +++ b/pre-apt.d/50uncommitted-changes @@ -1,15 +1,22 @@ #!/bin/sh set -e if ! LANG=C git-status 2>&1 | grep -q "working directory clean"; then - git-status || true - echo "etckeeper warning: /etc is not clean" >&2 - printf "Press Enter to commit changes and continue. " - read line &2 - echo "Please resolve the uncommitted changes by hand." - printf "Press Enter when ready to continue. " - read line