summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2025-02-28 09:34:51 +0000
committerGitHub <noreply@github.com>2025-02-28 09:34:51 +0000
commited946ef98beead0c0163cbe8568daa24b3ee68b0 (patch)
tree570952f82196c76cb071c358e93e6ccc6009c8a3 /bin/mw
parent532332b8df5dba470bfe96f95592153e303cefa3 (diff)
parent1d6dc7b8f6d299167905d02fd948c07e624ae2fb (diff)
Merge branch 'master' into patch-1
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mw b/bin/mw
index cdb7856..44086be 100755
--- 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() {