Fix return and show error

This commit is contained in:
Arun Prakash Jana 2020-04-24 20:30:16 +05:30
parent 7b7252dd32
commit fffaa74a09
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -6828,8 +6828,10 @@ int main(int argc, char *argv[])
} }
/* Prevent picker and list mode conflict */ /* Prevent picker and list mode conflict */
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) {
exit(1); fprintf(stderr, "stdin/out conflict\n");
return _FAILURE;
}
home = getenv("HOME"); home = getenv("HOME");
if (!home) { if (!home) {