cached_pass: Re-ask password if previously failed
This commit is contained in:
parent
d5e9cc2273
commit
9fac2c3701
|
@ -19,7 +19,7 @@ chmod 700 "$BASEDIR"
|
||||||
name_base64="$(echo "$name" | base64)"
|
name_base64="$(echo "$name" | base64)"
|
||||||
file="${BASEDIR}/${name_base64}"
|
file="${BASEDIR}/${name_base64}"
|
||||||
|
|
||||||
if [ ! -f "${file}" ]
|
if [ ! -s "${file}" ]
|
||||||
then
|
then
|
||||||
notify-send -u low "cached_pass" "Asking to cache: ${name}"
|
notify-send -u low "cached_pass" "Asking to cache: ${name}"
|
||||||
pass ${name} > "${file}"
|
pass ${name} > "${file}"
|
||||||
|
|
Loading…
Reference in a new issue