From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 (+0000) Subject: Fix bug with batch mode X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=aa0ad07cddf4aa51c707daff07fe66e60146e154;p=gamesguru%2Fgit-remote-gcrypt.git Fix bug with batch mode --- diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 94860bd..22b4caf 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -221,7 +221,7 @@ ensure_connected() then # Use gpg to verify and strip the signature echo_info "Verifying manifest signature" - STRIPDATA=$(printf "%s" "$MANIFESTDATA" | gpg || { + STRIPDATA=$(printf "%s" "$MANIFESTDATA" | gpg --batch || { echo_info "WARNING: Failed to verify signature from $URL" [ "$CONF_REQUIRE_SIGN" = "true" ] && \ echo_info "Exiting per gcrypt.requiresign" && exit 1 @@ -235,7 +235,7 @@ ensure_connected() get_masterkey() { - GET "$URL" masterkey 2>/dev/null | gpg -q --batch -d || : + GET "$URL" masterkey 2>/dev/null | gpg -q -d || : } do_capabilities()