From 9b27d7384e22405b109e9c3883ee9d01cfaa89ec Mon Sep 17 00:00:00 2001 From: Chris Down Date: Fri, 13 Sep 2013 07:50:47 +0200 Subject: Use a glob in the pattern match instead of using two comparisons for [yY]. --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index 0e19d52..2500253 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -75,7 +75,7 @@ git_add_file() { } yesno() { read -p "$1 [y/N] " response - [[ $response == "y" || $response == "Y" ]] || exit 1 + [[ $response == [yY] ]] || exit 1 } # # BEGIN Platform definable -- cgit v1.2.3-59-g8ed1b