]> gitweb.fluxo.info Git - firma.git/commitdiff
GetSubscribersInfo change back; AdminLog small update
authorrhatto <rhatto>
Thu, 12 Oct 2006 00:50:47 +0000 (00:50 +0000)
committerrhatto <rhatto>
Thu, 12 Oct 2006 00:50:47 +0000 (00:50 +0000)
firma

diff --git a/firma b/firma
index f62d79486552bca204b5de150b91227066b5bcef..ce57e19c7a493b2baad1d1e1d363728ffb7a2b0d 100755 (executable)
--- a/firma
+++ b/firma
@@ -1704,6 +1704,7 @@ function GetSubscribersInfo {
   local key
   local keys
   local keyid
+  local output
 
   if [ "$1" == "help" ]; then
     AdminLog "usage: info [all|emails|help]"
@@ -1719,7 +1720,8 @@ function GetSubscribersInfo {
   for key in $keys; do
     keyid="$($GPG_LIST_KEYS --with-fingerprint $1 2> /dev/null | grep ^fpr | cut -d : -f 10)"
     if [ ! -z "$keyid" ]; then
-      AdminLog `$GPG --list-keys $key`
+      output="`$GPG --list-keys $key`"
+      AdminLog "$output"
     fi
   done
 
@@ -1789,7 +1791,7 @@ function AdminLog {
   if [ "$MODE" == "admin-interactive" ]; then
     echo >&2 "$*"
   else
-    echo $*
+    echo "$*"
   fi
 }