]> gitweb.fluxo.info Git - firma.git/commitdiff
SubscribeUsers minor fix and created GPG_NOBATCH variable
authorrhatto <rhatto>
Tue, 10 Oct 2006 03:28:55 +0000 (03:28 +0000)
committerrhatto <rhatto>
Tue, 10 Oct 2006 03:28:55 +0000 (03:28 +0000)
firma

diff --git a/firma b/firma
index d3e733c29362c93be4a660f70cdb9718f4ed0b10..0a005303c09dd1fb2c05c4a7c3421d65161877e7 100755 (executable)
--- a/firma
+++ b/firma
@@ -145,8 +145,9 @@ function DeclareGpgVars {
   # depends on function(s): none
   # returns: 0
   #-------------------------------------------------------------
-  GPG_FLAGS="--no-options --no-default-keyring --homedir $LIST_HOMEDIR --quiet --batch --no-tty --no-use-agent --no-permission-warning"
-  GPG="$GPG_BINARY $GPG_FLAGS"
+  GPG_FLAGS="--no-options --no-default-keyring --homedir $LIST_HOMEDIR --quiet --no-tty --no-use-agent --no-permission-warning"
+  GPG="$GPG_BINARY $GPG_FLAGS --batch"
+  GPG_NOBATCH="$GPG_BINARY $GPG_FLAGS --no-batch"
   GPG_LIST_KEYS="$GPG --list-keys --with-colons"
   GPG_DECRYPT="$GPG --passphrase-fd 0 --decrypt"
   GPG_ENCRYPT="$GPG --armor --trust-model always --local-user $LIST_ADDRESS --passphrase-fd 0 --no-emit-version --sign --encrypt"
@@ -1503,7 +1504,7 @@ function SubscribeUsers {
         method="--recv-keys"
       fi
       shift
-      $GPG --no-batch --keyserver $keyserver $method $*
+      $GPG_NOBATCH --keyserver $keyserver $method $*
       return_code=$?
     else
       echo >&2 "subscribe: missing parameters: type subscribe help"