DomT4 / homebrew-autoupdate

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

sudo_gui_script_contents: add timeout, remove unnecessaries #128

Closed toobuntu closed 5 months ago

toobuntu commented 6 months ago

First commit

Second commit

toobuntu commented 6 months ago

Verified that the askpass helper does get executed without exporting PATH:

# success
sudo --reset-timestamp; env -i HOMEBREW_PREFIX="$HOMEBREW_PREFIX" SUDO_ASKPASS="$HOME/devel/sudo_gui_script_contents" sudo --validate --askpass

# pinentry-mac: command not found
sudo --reset-timestamp; env -i SUDO_ASKPASS="$HOME/devel/sudo_gui_script_contents" sudo --validate --askpass
DomT4 commented 5 months ago

Makes sense to me. Thank you @toobuntu and @swissbuechi for the review also.