git: a39ddf881ad8 - stable/14 - freebsd-update: Allow for upper/lowercase y/n

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

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

commit a39ddf881ad8530013c5e4cc5f84b3a6b58cca51
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:06 +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 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