git: ef295f69abbf - stable/13 - freebsd-update: Allow for upper/lowercase y/n

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

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

commit ef295f69abbffb3447771a30df6906ca56a5d0c0
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:35 +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