m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
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
parentc784a6ba4c8f6f1ef48b40aaba9d746a5b20f294 (diff)
edit: Don't go into a crazy loop. Instead prompt.
-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}."
}