From 9b83d599f09a026fb5e79ff8ebec7e611b71ea78 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 28 Nov 2019 18:48:17 +0000 Subject: [PATCH] pash: simplify y/n --- pash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pash b/pash index 61ff9c9..f333710 100755 --- a/pash +++ b/pash @@ -94,7 +94,7 @@ yn() { # Handle the answer here directly, enabling this function's # return status to be used in place of checking for '[yY]' # throughout this program. - glob "$answer" '[yY]' || return 1 && return 0 + glob "$answer" '[yY]' } glob() {