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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user