cached_pass: Re-ask password if previously failed

This commit is contained in:
Geoffrey Frogeye 2022-11-04 14:14:13 +01:00
parent d5e9cc2273
commit 9fac2c3701
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -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}"