Remove DISPLAY var to prevent calling askpass

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-08-31 23:06:41 +02:00
parent 3d08fb9d83
commit cb2b5b8497
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -21,6 +21,7 @@ trap "rm ${HELPER}" EXIT
cat -s <<EOF >${HELPER}
#!/bin/bash -eu
export -n DISPLAY
vault read -field=private "secret/ssh-key/\$1" | exec ssh-add -t 3600 -
EOF