Skip to content

Commit

Permalink
fix formatting & colorize logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejfuhrer committed Oct 14, 2023
1 parent 29fb4d7 commit 4558b85
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/extend/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,9 @@ def output_print_pin_table(pinns)

def formatting_for_app(state_info, app, options)
if state_info[app] == "pinned"
if ENV['HOMEBREW_CASK_UPGRADE_PINNED_OUTDATED_COLORIZE']
if app[:current_full] != app[:version_full]
color = "blue"
end
else
color = "cyan"
color = "cyan"
if ENV["HOMEBREW_CASK_UPGRADE_PINNED_OUTDATED_COLORIZE"] && app[:current_full] != app[:version_full]
color = "blue"
end
result = "[ PINNED ]"
elsif state_info[app][0, 6] == "forced"
Expand Down

0 comments on commit 4558b85

Please sign in to comment.