summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2013-11-09 22:37:54 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2013-11-09 22:37:54 +0000
commit2f9dd6b465d689c2b927b3a78fd5b8d04bdc245a (patch)
tree7b4e3c17bcd9c0d0a3b2877571b62afcc8cc5cc6 /distrib/miniroot/install.sub
parent13748639c2b87530a8eac75419b9c6fce68f18a6 (diff)
Abort autoinstaller in case of an invalid answer to a yes/no question.
Avoids an endless question/wrong answer loop. with help from and ok halex@ ok krw@
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 3 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 68599419d55..4402432ab06 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.690 2013/11/09 19:38:59 rpe Exp $
+# $OpenBSD: install.sub,v 1.691 2013/11/09 22:37:53 rpe Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -404,6 +404,8 @@ ask_yn() {
y|yes) resp=y ; return ;;
n|no) resp=n ; return ;;
esac
+ echo "'$resp' is not a valid choice."
+ $auto && exit 1
done
}