mirror of https://github.com/sbt/sbt.git
Disable progress bar by default if CI or Emacs detected
This commit is contained in:
parent
3045ebbfd0
commit
527b1eca96
|
|
@ -65,9 +65,12 @@ object TermDisplay {
|
|||
|
||||
def nonInteractive = System.console() == null
|
||||
|
||||
def insideEmacs = sys.env.contains("INSIDE_EMACS")
|
||||
def ci = sys.env.contains("CI")
|
||||
|
||||
val env = env0.getOrElse(compatibilityEnv)
|
||||
|
||||
env || nonInteractive
|
||||
env || nonInteractive || insideEmacs || ci
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue