Skip to content

Commit 8030684

Browse files
felipecgitster
authored andcommitted
completion: bash: cleanup cygwin check
Avoid Yoda conditions, and use $OSTYPE. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5a364d2 commit 8030684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3499,6 +3499,6 @@ __git_complete gitk __gitk_main
34993499
# when the user has tab-completed the executable name and consequently
35003500
# included the '.exe' suffix.
35013501
#
3502-
if [ Cygwin = "$(uname -o 2>/dev/null)" ]; then
3503-
__git_complete git.exe __git_main
3502+
if [ "$OSTYPE" = cygwin ]; then
3503+
__git_complete git.exe __git_main
35043504
fi

0 commit comments

Comments
 (0)