diff options
author | 2013-11-09 22:37:53 +0000 | |
---|---|---|
committer | 2013-11-09 22:37:53 +0000 | |
commit | 5062dca3c51b6a8df286eb1f2e916bda6e239a9f (patch) | |
tree | 5ac9002dfd855b7ab29f58e5e78db70097c37627 | |
parent | Disable SRCLIBDIR crunchgen feature on gcc 3 platforms; gcc 3 collect2 does (diff) | |
download | wireguard-openbsd-5062dca3c51b6a8df286eb1f2e916bda6e239a9f.tar.xz wireguard-openbsd-5062dca3c51b6a8df286eb1f2e916bda6e239a9f.zip |
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@
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
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 } |