From 9fac2c370107d0397e9f505cbe8baeb981959318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Fri, 4 Nov 2022 14:14:13 +0100 Subject: [PATCH] cached_pass: Re-ask password if previously failed --- config/scripts/cached_pass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/scripts/cached_pass b/config/scripts/cached_pass index b92f6ec..401b797 100755 --- a/config/scripts/cached_pass +++ b/config/scripts/cached_pass @@ -19,7 +19,7 @@ chmod 700 "$BASEDIR" name_base64="$(echo "$name" | base64)" file="${BASEDIR}/${name_base64}" -if [ ! -f "${file}" ] +if [ ! -s "${file}" ] then notify-send -u low "cached_pass" "Asking to cache: ${name}" pass ${name} > "${file}"