]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
Fix bug with batch mode
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
git-remote-gcrypt

index 94860bdcd25900bb7fa410db57ae47d796d2847d..22b4caf2d8fbf29bb2245c1526f78a79c3e8eeb7 100755 (executable)
@@ -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()