Skip to content

Commit

Permalink
start: enable pinentry passphrase caching
Browse files Browse the repository at this point in the history
  • Loading branch information
toobuntu committed Dec 4, 2024
1 parent 8bca942 commit 3396a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autoupdate/start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def start(interval:, args:)
sudo_gui_script_contents = <<~EOS
#!/bin/sh
PATH='#{HOMEBREW_PREFIX}/bin'
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))}'
EOS
elsif env_sudo
set_env << "\nexport SUDO_ASKPASS=#{env_sudo}"
Expand Down

0 comments on commit 3396a10

Please sign in to comment.