DomT4/homebrew-autoupdate

Question about casks that require admin privileges

o0-o opened this issue ยท 2 comments

o0-o commented

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

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

Closing this in favour of the new tracking issue in #40.