aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-06-29 11:22:10 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-06-29 11:22:10 +0200
commitb300dd8f97a6d1d5ed914fedcba3e79604cd7e87 (patch)
tree53eb9030ec04431d56bbf2634cfd99da38c3df18 /src/password-store.sh
parentgit: do not trap tmpdir removal (diff)
downloadpassword-store-b300dd8f97a6d1d5ed914fedcba3e79604cd7e87.tar.xz
password-store-b300dd8f97a6d1d5ed914fedcba3e79604cd7e87.zip
edit: Don't go into a crazy loop. Instead prompt.
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 701a750..575371a 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -432,8 +432,7 @@ cmd_edit() {
fi
${EDITOR:-vi} "$tmp_file"
while ! $GPG -e "${GPG_RECIPIENT_ARGS[@]}" -o "$passfile" "${GPG_OPTS[@]}" "$tmp_file"; do
- echo "GPG encryption failed. Retrying."
- sleep 1
+ yesno "GPG encryption failed. Would you like to try again?"
done
git_add_file "$passfile" "$action password for $path using ${EDITOR:-vi}."
}