commit 1538088b94d073e381c81c5022b456f52784f6c5
parent b2a065debb20b9682d9840f850a9434f45652165
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Thu, 17 May 2018 23:27:04 +0200
Brew cask upgrades greedily
Basically, Caskroom ignores whatever auto-updates. I don't want it to. So I tell it to be greedy af. Upgrade everything.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/commonprofile b/commonprofile
@@ -55,13 +55,13 @@ notify() {
brewmaster() {
brew update;
brew update > /dev/null;
- outdated="$(brew outdated) $(brew cask outdated)"
+ outdated="$(brew outdated) $(brew cask outdated --greedy)"
if [ ${#outdated} = 1 ]; then
echo "Nothing to update."
else
echo "\nTo update:\n"
brew outdated;
- brew cask outdated;
+ brew cask outdated --greedy;
notify "Finished reading updates" "Click to view outdated packages."
echo -n "Continue? [Y/n]"
read -sqn CONF
@@ -72,7 +72,7 @@ brewmaster() {
fi
echo "\nContinuing with upgrade."
brew upgrade;
- brew cask upgrade;
+ brew cask upgrade --greedy;
fi
brew cleanup -s;
brew cask cleanup;