Cask upgrade should dry run.

This commit is contained in:
Bartek Stalewski 2025-06-01 01:56:03 +02:00
parent 2b62d0bfd6
commit 6d18ab972b
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -70,8 +70,11 @@ function ud() {
function upgrade() {
if [ $(uname -s) = "Darwin" ]; then
brew update && brew upgrade && brew upgrade --cask --greedy -f && brew autoremove && brew cleanup
brew update
brew upgrade
brew autoremove
rm -rf ~/Library/Caches/Homebrew/*
brew upgrade --cask --greedy -f --dry-run
elif [ $(uname -s) = "FreeBSD" ]; then
pkg update -f
pkg upgrade