mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix return and show error
This commit is contained in:
parent
7b7252dd32
commit
fffaa74a09
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue