Skip to content

Commit 386308b

Browse files
authored
Merge pull request DomT4#152 from toobuntu/pinentry-caching
start: enable pinentry passphrase caching
2 parents 429bc2e + 3e13e41 commit 386308b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/autoupdate/start.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def start(interval:, args:)
7878
sudo_gui_script_contents = <<~EOS
7979
#!/bin/sh
8080
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))}'
81+
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))}'
8282
EOS
8383
elsif env_sudo
8484
set_env << "\nexport SUDO_ASKPASS=#{env_sudo}"

0 commit comments

Comments
 (0)