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

run cask cu as super user #26

Closed axot closed 7 years ago

axot commented 7 years ago

I want add a cron job for automatic brew cask upgrade, something like virtualbox need super user privilege for installation. Does this possible achievable?

adidalal commented 7 years ago

(Homebrew Cask maintainer here) No, don't do this.

In your script, pass in sudo and renew it before installing pkg-based apps. ie. https://github.com/vitorgalvao/dotfiles/blob/master/scripts/00_setup.sh#L5 and https://github.com/vitorgalvao/dotfiles/blob/master/scripts/02_apps.sh#L23

robrecord commented 2 years ago

Now found at https://github.com/vitorgalvao/dotfiles/blob/master/scripts/helper_functions.sh and https://github.com/vitorgalvao/dotfiles/blob/master/scripts/apps.sh