1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Imply -q when stderr is not a tty (#2884)

* Imply -q when stderr is not a tty
This commit is contained in:
binhdvo
2021-12-07 16:56:19 -05:00
committed by GitHub
parent b6b4c9a3da
commit 38dfc4699e
2 changed files with 7 additions and 7 deletions

View File

@ -1402,7 +1402,7 @@ int main(int argCount, const char* argv[])
/* No status message in pipe mode (stdin - stdout) */
hasStdout = outFileName && !strcmp(outFileName,stdoutmark);
if (hasStdout && (g_displayLevel==2)) g_displayLevel=1;
if ((hasStdout || !IS_CONSOLE(stderr)) && (g_displayLevel==2)) g_displayLevel=1;
/* IO Stream/File */
FIO_setHasStdoutOutput(fCtx, hasStdout);