|
@@ -173,11 +173,11 @@ askinfo() { |
|
|
[ -z "$passprefix" ] && passprefix="" |
|
|
[ -z "$passprefix" ] && passprefix="" |
|
|
hostname="${fulladdr#*@}" |
|
|
hostname="${fulladdr#*@}" |
|
|
login="${login:-$fulladdr}" |
|
|
login="${login:-$fulladdr}" |
|
|
if [ -n "${password+x}" ]; then |
|
|
|
|
|
|
|
|
if [ -n "${password+x}" ] && [ ! -f "$PASSWORD_STORE_DIR/$passprefix$fulladdr.gpg" ]; then |
|
|
insertpass |
|
|
insertpass |
|
|
else |
|
|
|
|
|
|
|
|
elif [ ! -f "$PASSWORD_STORE_DIR/$passprefix$fulladdr.gpg" ]; then |
|
|
getpass |
|
|
getpass |
|
|
fi |
|
|
|
|
|
|
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
insertpass() { |
|
|
insertpass() { |
|
|