We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 429bc2e + 3e13e41 commit 386308bCopy full SHA for 386308b
lib/autoupdate/start.rb
@@ -78,7 +78,7 @@ def start(interval:, args:)
78
sudo_gui_script_contents = <<~EOS
79
#!/bin/sh
80
PATH='#{HOMEBREW_PREFIX}/bin'
81
- printf "%s\n" "SETOK OK" "SETCANCEL Cancel" "SETDESC homebrew-autoupdate needs your admin password to complete the upgrade" "SETPROMPT Enter Password:" "SETTITLE homebrew-autoupdate Password Request" "GETPIN" | pinentry-mac --no-global-grab --timeout 60 | /usr/bin/awk '/^D / {print substr($0, index($0, $2))}'
+ printf "%s\n" "OPTION allow-external-cache" "SETOK OK" "SETCANCEL Cancel" "SETDESC homebrew-autoupdate needs your admin password to complete the upgrade" "SETPROMPT Enter Password:" "SETTITLE homebrew-autoupdate Password Request" "GETPIN" | pinentry-mac --no-global-grab --timeout 60 | /usr/bin/awk '/^D / {print substr($0, index($0, $2))}'
82
EOS
83
elsif env_sudo
84
set_env << "\nexport SUDO_ASKPASS=#{env_sudo}"
0 commit comments