pash: simplify y/n

This commit is contained in:
Dylan Araps 2019-11-28 18:48:17 +00:00
parent 4996cec081
commit 9b83d599f0
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
pash
View File

@ -94,7 +94,7 @@ yn() {
# Handle the answer here directly, enabling this function's # Handle the answer here directly, enabling this function's
# return status to be used in place of checking for '[yY]' # return status to be used in place of checking for '[yY]'
# throughout this program. # throughout this program.
glob "$answer" '[yY]' || return 1 && return 0 glob "$answer" '[yY]'
} }
glob() { glob() {