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