Skip to content

Conversation

@arall
Copy link

@arall arall commented Nov 13, 2020

Fixes the following issue:

$ brew pkg --with-deps --scripts scripts filebeat
[...]
Error: undefined method `next' for ["--with-deps", "--scripts", "scripts", "filebeat"]:Array
/usr/local/bin/brew-pkg.rb:106:in `pkg'
/usr/local/bin/brew-pkg.rb:162:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/Homebrew/Library/Homebrew/utils.rb:86:in `require?'
/usr/local/Homebrew/Library/Homebrew/brew.rb:121:in `<main>'

I'm not a Ruby dev, so maybe there is a better way to do it.

overhacked added a commit to overhacked/brew-pkg that referenced this pull request Jan 27, 2022
Already partially addressed in timsutton#16, but that
PR missed one call to the non-existent `Array.next`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant