mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit 9bd972effcd27cc7d9c4caaf1e905a58d1d1bb58
parent 629ecc8e566a276f4e653288306a09a77bbe3122
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat, 20 Apr 2019 18:54:37 -0400

password prompt loops

Diffstat:
Mmw | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/mw b/mw @@ -168,7 +168,9 @@ EOF trysync && finalize } -getpass() { pass rm -f "mutt-wizard-$title" >/dev/null 2>&1 ; pass insert "mutt-wizard-$title" ;} +getpass() { pass rm -f "mutt-wizard-$title" >/dev/null 2>&1 + while ! pass ls | grep -o " mutt-wizard-$title$" >/dev/null 2>&1;do + pass insert "mutt-wizard-$title"; done;} formatShortcut() { \ while read -r data; do { echo "macro index,pager g$1 \"<change-folder>$data<enter>\" \"go to $2\" # autogenerated" @@ -295,7 +297,7 @@ Input a number to continue or press ctrl-c.\\n" printf "\033[0m" case "$choice" in 1) addtype ;; - 2) pick "change the password of" && confirm "change the password of" && getpass ;; + 2) pick "change the password of" && confirm "change \`$title\`'s password" && getpass ;; 3) pick delete && confirm "delete the \`$title\` profile" && delete ;; 4) confirm "delete all account data" && rm -rf "$mbsyncrc" "$accdir" "$muttdir/personal.muttrc" && echo "All configs and account settings have been purged." ;; 5) choosecron ;;