Merge pull request #1211 from vladshablinsky/list-version-code
list: fix exit code for --verbose and --pinned
This commit is contained in:
commit
f7d1f4eca6
@ -106,7 +106,11 @@ module Homebrew
|
|||||||
names = if ARGV.named.empty?
|
names = if ARGV.named.empty?
|
||||||
Formula.racks
|
Formula.racks
|
||||||
else
|
else
|
||||||
ARGV.named.map { |n| HOMEBREW_CELLAR+n }.select(&:exist?)
|
racks = ARGV.named.map { |n| HOMEBREW_CELLAR+n }
|
||||||
|
racks.select do |rack|
|
||||||
|
Homebrew.failed = true unless rack.exist?
|
||||||
|
rack.exist?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if ARGV.include? "--pinned"
|
if ARGV.include? "--pinned"
|
||||||
pinned_versions = {}
|
pinned_versions = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user