diff --git a/compat/terminal.c b/compat/terminal.c index 3c8b00cfd9..e95c9aa8df 100644 --- a/compat/terminal.c +++ b/compat/terminal.c @@ -293,7 +293,7 @@ char *git_terminal_prompt(const char *prompt, int echo) /* try shell_prompt first, fall back to CONIN/OUT if bash is missing */ char *result = shell_prompt(prompt, echo); - if (result || errno != ENOENT) + if (result) return result; #endif