Browse Source

Fix return and show error

master
Arun Prakash Jana 4 years ago
parent
commit
fffaa74a09
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/nnn.c

+ 4
- 2
src/nnn.c View File

@@ -6828,8 +6828,10 @@ int main(int argc, char *argv[])
}

/* Prevent picker and list mode conflict */
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO))
exit(1);
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) {
fprintf(stderr, "stdin/out conflict\n");
return _FAILURE;
}

home = getenv("HOME");
if (!home) {


Loading…
Cancel
Save