Test if keychain command is available

This commit is contained in:
gardouille 2024-03-18 11:32:54 +01:00
parent 28e417ea74
commit cd507205e7
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ killall --quiet ssh-agent
rm --recursive --force -- /tmp/ssh-*
# GPG Agent
keychain --agents gpg --clear
command -v keychain && keychain --agents gpg --clear
pkill --uid="$(id -u)" -- "gpg-agent"
# Keychain - Delete everything link to ssh-agent or gpg-agent