git: 05f988e987f4 - stable/12 - freebsd-update: Allow for upper/lowercase y/n

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Sun, 01 Oct 2023 17:31:14 UTC
The branch stable/12 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=05f988e987f42a182fdda64e83bd1cb7aba59109

commit 05f988e987f42a182fdda64e83bd1cb7aba59109
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2023-09-17 16:15:27 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-10-01 17:30:58 +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)
---
 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 a01e81d7be49..5a523775dbbb 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -1204,10 +1204,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