diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-06-29 11:22:10 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-06-29 11:22:10 +0200 |
commit | b300dd8f97a6d1d5ed914fedcba3e79604cd7e87 (patch) | |
tree | 53eb9030ec04431d56bbf2634cfd99da38c3df18 /src | |
parent | c784a6ba4c8f6f1ef48b40aaba9d746a5b20f294 (diff) | |
download | pass-b300dd8f97a6d1d5ed914fedcba3e79604cd7e87.tar.gz pass-b300dd8f97a6d1d5ed914fedcba3e79604cd7e87.tar.bz2 pass-b300dd8f97a6d1d5ed914fedcba3e79604cd7e87.zip |
edit: Don't go into a crazy loop. Instead prompt.
Diffstat (limited to 'src')
-rwxr-xr-x | src/password-store.sh | 3 |
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}." } |