DomT4 / homebrew-autoupdate

:tropical_drink: An easy, convenient way to automatically update Homebrew.
BSD 2-Clause "Simplified" License
995 stars 55 forks source link

Question about casks that require admin privileges #35

Closed o0-o closed 3 years ago

o0-o commented 3 years ago

Many casks will prompt for an admin password during upgrade (via sudo, I assume). How are these cases handled? I don't see anything about it in the readme.

DomT4 commented 3 years ago

It waits, annoyingly. I'll need to look into this; maybe I can check with brew outdated beforehand and if any of the casks specify sudo usage those could be skipped with a notification warning they have been. Quite a bit of work to rewrite the system to that extent though. I'll think on this more.

🐍 ~> brew upgrade --cask -v
==> Casks with `auto_updates` or `version :latest` will not be upgraded
==> Upgrading 1 outdated package:
openvpn-connect 3.2.2,1899 -> 3.2.3,2325
==> Upgrading openvpn-connect
==> Downloading https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.2.3.2325_signed.dmg
/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/2.5.6-70-gd8d6517\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 11.0\)\ curl/7.64.1 --header Accept-Language:\ en --fail --retry 3 --location --remote-time --continue-at - --output /usr/local/var/homebrewcache/downloads/9a854eeef8b5a37ffd3f23a1bc96262e56eefe9aaba11ce5a3173c1d745eb408--openvpn-connect-3.2.3.2325_signed.dmg.incomplete https://swupdate.openvpn.net/downloads/connect/openvpn-connect-3.2.3.2325_signed.dmg
** Resuming transfer from byte position 4296704
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 51.4M  100 51.4M    0     0  2077k      0  0:00:25  0:00:25 --:--:--  992k
==> Verifying SHA-256 checksum for Cask 'openvpn-connect'.
==> Removing launchctl service org.openvpn.client
Password:
DomT4 commented 3 years ago

Closing this in favour of the new tracking issue in https://github.com/DomT4/homebrew-autoupdate/issues/40.