mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 16:36:22 -04:00
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:
parent
7ae2e0b9ef
commit
02a440953b
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue