1
0
ssh-askpass-pinentry/ssh-askpass

22 lines
310 B
Plaintext
Raw Normal View History

2024-04-17 22:48:21 +00:00
#!/bin/zsh
PINENTRY=@pinentry_mac@/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac
coproc $PINENTRY
PINENTRY_PID=$!
trap "kill -TERM $PINENTRY_PID" INT TERM
read -p
print -p SETDESC $@
read -p
print -p SETOK Hide
read -p
print -p CONFIRM --one-button
read -p
# Close the coproc
coproc :
exit 1