Skip to content

Commit

Permalink
Merge pull request #985 from speedie1337/master
Browse files Browse the repository at this point in the history
Don't prompt for password, if the email address already has one stored.
  • Loading branch information
LukeSmithxyz authored Jul 15, 2024
2 parents 10a16e0 + 11e5421 commit c891164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/mw
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ askinfo() {
[ -z "$passprefix" ] && passprefix=""
hostname="${fulladdr#*@}"
login="${login:-$fulladdr}"
if [ -n "${password+x}" ]; then
if [ -n "${password+x}" ] && [ ! -f "$PASSWORD_STORE_DIR/$passprefix$fulladdr.gpg" ]; then
insertpass
else
elif [ ! -f "$PASSWORD_STORE_DIR/$passprefix$fulladdr.gpg" ]; then
getpass
fi
fi
}

insertpass() {
Expand Down

0 comments on commit c891164

Please sign in to comment.