diff --git a/compat/terminal.c b/compat/terminal.c index 4fe0c1a960..57c512ac04 100644 --- a/compat/terminal.c +++ b/compat/terminal.c @@ -259,7 +259,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