Closed lkrms closed 3 years ago
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
FYI @DomT4, I've just rebased and cleaned up this branch, with a couple of improvements:
brew update
etc. are now invoked using the same architecture brew autoupdate
was originally called withThe changes haven't come through because this PR is closed, but I assume you can remedy that? Let me know if you'd like me to open another PR. You can check out the branch here if needed.
On an Apple Silicon system with 2 Homebrew installations (at
/opt/homebrew
and/usr/local
for arm64 and x86_64 respectively),arch --x86_64 /usr/local/bin/brew autoupdate subcommand
conflicts with/opt/homebrew/bin/brew autoupdate subcommand
, which makes it impossible to enable autoupdate for both installations simultaneously.The workaround I've used here may not be suitable for wider adoption, but hopefully a few revisions will get it there if not.
TL;DR:
com.github.domt4.homebrew-autoupdate.arm64
)~/Library/LaunchAgents/com.github.domt4.homebrew-autoupdate.plist
already exists (the new name only takes effect afterbrew autoupdate delete
)~/Library/Logs/com.github.domt4.homebrew-autoupdate/
isn't deleted unless it's emptyThere are probably things I've missed, but it seems to be working as expected here (although I don't have
--upgrade
enabled).