Remove DISPLAY var to prevent calling askpass
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3d08fb9d83
commit
cb2b5b8497
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ trap "rm ${HELPER}" EXIT
|
||||||
|
|
||||||
cat -s <<EOF >${HELPER}
|
cat -s <<EOF >${HELPER}
|
||||||
#!/bin/bash -eu
|
#!/bin/bash -eu
|
||||||
|
export -n DISPLAY
|
||||||
vault read -field=private "secret/ssh-key/\$1" | exec ssh-add -t 3600 -
|
vault read -field=private "secret/ssh-key/\$1" | exec ssh-add -t 3600 -
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue