brew-pkg
brew-pkg copied to clipboard
Fix missing `ARGV.next` and incomplete detection of `LaunchDaemon`s
- Not sure what change to Homebrew or Ruby caused this issue, but running
brew-pkgresults in an error when accessingARGVthatArrayhas no methodnext. #16 already partially addresses the missingARGV.nexterrors, but it missed one. All #16's changes are included in this PR. -
brew-pkgdetects formulae withLaunchDaemons by testing forFormula.plist, but aLaunchDaemoncan also be defined byFormula.service. Changed the conditional to check for existence of either. The rest of theLaunchDaemonwriting code works as-is.