buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.44k stars 90 forks source link

auto update before cu #62

Closed VMatrix1900 closed 7 years ago

VMatrix1900 commented 7 years ago

Now brew install will trigger brew update by default. It's controlled by env variable HOMEBREW_NO_AUTO_UPDATE. It will be a good idea that brew cu follow the same logic.

buo commented 7 years ago

I couldn't utilize HOMEBREW_NO_AUTO_UPDATE env because it's set to "1" before running brew cu.

See https://github.com/Homebrew/brew/blob/53038a14b37158bc32c7c54b16cb4e06333dd8c4/Library/Homebrew/brew.sh#L336.