From: Andre Ramnitz Date: Wed, 17 Jan 2024 23:26:43 +0000 (+0100) Subject: aerc: improve keepassxc helper script X-Git-Tag: v0.2~233 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=abf00b8f1125ea7a025f13dc361b7fb8b0520d15;p=dotfiles.git aerc: improve keepassxc helper script --- diff --git a/config/aerc/scripts/wait-for-creds.sh b/config/aerc/scripts/wait-for-creds.sh index 7ab4f102..834c67e4 100755 --- a/config/aerc/scripts/wait-for-creds.sh +++ b/config/aerc/scripts/wait-for-creds.sh @@ -1,8 +1,14 @@ #!/bin/sh +if [ ! "$(pidof keepassxc)" ]; then + echo "KeepassXC not running"; + exit 1 +fi + secret-tool lookup "$1" "$2" # wait until the password is available while [ $? != 0 ]; do secret-tool lookup "$1" "$2" + sleep 5 done