Skip to content

Commit

Permalink
Fix check for colors support
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Dec 6, 2023
1 parent 082e6c0 commit 2766699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clone/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2766699

Please sign in to comment.