git: 39f4633b3d23 - main - freebsd-update: Allow for upper/lowercase y/n

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Wed, 20 Sep 2023 16:50:48 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/src/commit/?id=39f4633b3d2354c01a290d5f422dce7874061769

commit 39f4633b3d2354c01a290d5f422dce7874061769
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-09-17 16:15:27 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2023-09-20 16:50:11 +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
---
 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 9cdff05c24e4..29633b51b26c 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