mutt-wizard

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c891164574ae2d097d041d68bdde6fae18630564
parent 10a16e0ee6442425e7ca1634b1d3356e6d4d04f6
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Mon, 15 Jul 2024 14:24:22 -0400

Merge pull request #985 from speedie1337/master

Don't prompt for password, if the email address already has one stored.
Diffstat:
Mbin/mw | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/mw b/bin/mw @@ -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() {