瀏覽代碼

Merge pull request #985 from speedie1337/master

Don't prompt for password, if the email address already has one stored.
pull/996/head
Luke Smith 2 月之前
committed by GitHub
父節點
當前提交
c891164574
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      bin/mw

+ 3
- 3
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() {


Loading…
取消
儲存