diff --git a/compat/terminal.c b/compat/terminal.c index 102a1fc804..24a552b6a1 100644 --- a/compat/terminal.c +++ b/compat/terminal.c @@ -258,7 +258,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