cmd/uninstall: handle unparsed arguments.
If `Homebrew.args` hasn't yet been populated then `named` will return `nil`. Instead, ensure it is an array before we try to `join` it. This is pretty much only a test-time problem but has been causing flaky builds.
This commit is contained in:
parent
30c4383e86
commit
40432d86f9
@ -130,7 +130,7 @@ module Homebrew
|
|||||||
protected
|
protected
|
||||||
|
|
||||||
def sample_command
|
def sample_command
|
||||||
"brew uninstall --ignore-dependencies #{Homebrew.args.named.join(" ")}"
|
"brew uninstall --ignore-dependencies #{Array(Homebrew.args.named).join(" ")}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def are_required_by_deps
|
def are_required_by_deps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user