replace wildcard '?' to literal '?'

Previously the `?` in the case statement will match any single letter.
As a result, `git scp a` will act as the same as `git scp -h`.
What we actually need is a literal '?'.
This commit is contained in:
spacewander 2015-10-08 14:06:46 +08:00
parent 7ae2e0b9ef
commit 02a440953b

View file

@ -170,7 +170,7 @@ function _error()
case $(basename $0) in
git-scp)
case $1 in
''|-h|?|help|--help) shift; _test_git_scp; _usage $@;;
''|-h|'?'|help|--help) shift; _test_git_scp; _usage $@;;
*) scp_and_stage $@;;
esac
;;