Skip to content
Snippets Groups Projects
Commit 9b27d738 authored by Chris Down's avatar Chris Down Committed by Jason A. Donenfeld
Browse files

Use a glob in the pattern match instead of using two comparisons for [yY].

parent 037fa8e2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment