22 lines
310 B
Plaintext
22 lines
310 B
Plaintext
|
#!/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
|