mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-10 21:22:03 +00:00
Do not print a warning if mvnd is launched outside of a terminal, see #513
This commit is contained in:
@@ -149,7 +149,7 @@ public class TerminalOutput implements ClientOutput {
|
|||||||
public TerminalOutput(boolean noBuffering, int rollingWindowSize, Path logFile) throws IOException {
|
public TerminalOutput(boolean noBuffering, int rollingWindowSize, Path logFile) throws IOException {
|
||||||
this.start = System.currentTimeMillis();
|
this.start = System.currentTimeMillis();
|
||||||
TerminalBuilder builder = TerminalBuilder.builder();
|
TerminalBuilder builder = TerminalBuilder.builder();
|
||||||
boolean outRedirected = CLibrary.isatty(0) == 1 && CLibrary.isatty(1) == 0;
|
boolean outRedirected = CLibrary.isatty(1) == 0;
|
||||||
if (outRedirected) {
|
if (outRedirected) {
|
||||||
builder.dumb(true);
|
builder.dumb(true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user