completion: bash: cleanup cygwin check

Avoid Yoda conditions, and use $OSTYPE. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Oct 27, 2020 at 20:07 UTC 8030684beb7af806909c3fa79d3d4017121a753c
1 file changed +2 -2
contrib/completion/git-completion.bash
+2 -2
@@ -3499,6 +3499,6 @@ __git_complete gitk __gitk_main
3499 # when the user has tab-completed the executable name and consequently
3500 # included the '.exe' suffix.
3501 #
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
3504 fi