aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2013-09-13 07:50:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2013-09-14 19:20:27 +0200
commit9b27d7384e22405b109e9c3883ee9d01cfaa89ec (patch)
tree98df8527863779e04419c0f172766fd1de854862 /src/password-store.sh
parentRephrase awkward/confusing message about enabling echo during password entry. (diff)
downloadpassword-store-9b27d7384e22405b109e9c3883ee9d01cfaa89ec.tar.xz
password-store-9b27d7384e22405b109e9c3883ee9d01cfaa89ec.zip
Use a glob in the pattern match instead of using two comparisons for [yY].
Diffstat (limited to 'src/password-store.sh')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
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