From b300dd8f97a6d1d5ed914fedcba3e79604cd7e87 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 29 Jun 2014 11:22:10 +0200 Subject: edit: Don't go into a crazy loop. Instead prompt. --- src/password-store.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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}." } -- cgit v1.2.3