git: fdda68c5f1a6 - releng/14.0 - freebsd-update: Allow for upper/lowercase y/n
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Oct 2023 23:35:34 UTC
The branch releng/14.0 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=fdda68c5f1a62010416f3e6b358d04b50d993d6a
commit fdda68c5f1a62010416f3e6b358d04b50d993d6a
Author: Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-09-17 16:15:27 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-10-13 23:17:45 +0000
freebsd-update: Allow for upper/lowercase y/n
Allow for upper/lowercase y/n in "Does this look right?" question.
Reviewed by: emaste
Approved by: emaste
Differential revision: https://reviews.freebsd.org/D40434
(cherry picked from commit 39f4633b3d2354c01a290d5f422dce7874061769)
(cherry picked from commit a39ddf881ad8530013c5e4cc5f84b3a6b58cca51)
Approved by: re (gjb)
---
usr.sbin/freebsd-update/freebsd-update.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index b9b277cca1c8..c6432dcd6b0e 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -1202,10 +1202,10 @@ fetch_progress () {
continuep () {
while read -p "Does this look reasonable (y/n)? " CONTINUE; do
case "${CONTINUE}" in
- y*)
+ [yY]*)
return 0
;;
- n*)
+ [nN]*)
return 1
;;
esac