update: escape ? in the help flag list

Otherwise it will match any character
This commit is contained in:
Xu Cheng 2016-05-02 21:04:30 +08:00
parent 3b40dcedf8
commit 67944c2f2d

View File

@ -234,7 +234,7 @@ homebrew-update() {
for option in "$@"
do
case "$option" in
-?|-h|--help|--usage) brew help update; exit $? ;;
-\?|-h|--help|--usage) brew help update; exit $? ;;
--verbose) HOMEBREW_VERBOSE=1 ;;
--debug) HOMEBREW_DEBUG=1;;
--merge) HOMEBREW_MERGE=1 ;;