From cb2b5b8497c613e233900a0dc4cd12632c81476f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 31 Aug 2018 23:06:41 +0200 Subject: [PATCH] Remove DISPLAY var to prevent calling askpass Signed-off-by: Knut Ahlers --- bin/vault-sshadd | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/vault-sshadd b/bin/vault-sshadd index 73c0121..723a489 100755 --- a/bin/vault-sshadd +++ b/bin/vault-sshadd @@ -21,6 +21,7 @@ trap "rm ${HELPER}" EXIT cat -s <${HELPER} #!/bin/bash -eu +export -n DISPLAY vault read -field=private "secret/ssh-key/\$1" | exec ssh-add -t 3600 - EOF