From 27666999f098de8a7c929e883ad5b7a5484fad9b Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Wed, 6 Dec 2023 13:56:36 +0300 Subject: [PATCH] Fix check for colors support --- clone/clone.go | 2 +- gen/gen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clone/clone.go b/clone/clone.go index 7463190..9ee1e6c 100644 --- a/clone/clone.go +++ b/clone/clone.go @@ -139,7 +139,7 @@ func Run(gitRev string, gomod []byte) { // preConfigureUI preconfigures UI based on information about user terminal func preConfigureUI() { - if fmtc.IsColorsSupported() { + if !fmtc.IsColorsSupported() { fmtc.DisableColors = true } diff --git a/gen/gen.go b/gen/gen.go index 6963428..ba66ca2 100644 --- a/gen/gen.go +++ b/gen/gen.go @@ -150,7 +150,7 @@ func Run(gitRev string, gomod []byte) { // preConfigureUI preconfigures UI based on information about user terminal func preConfigureUI() { - if fmtc.IsColorsSupported() { + if !fmtc.IsColorsSupported() { fmtc.DisableColors = true }