瀏覽代碼

password prompt loops

tags/v3.1
Luke Smith 5 年之前
父節點
當前提交
9bd972effc
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4C50B54A911F6252
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. +4
    -2
      mw

+ 4
- 2
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 ;;


Loading…
取消
儲存