pash: simplify y/n
This commit is contained in:
parent
4996cec081
commit
9b83d599f0
2
pash
2
pash
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user