chiark / gitweb /
Make noack honoured for approvals too
[modbot-mtm.git] / stump / bin / stump-pgp
1 #!/bin/bash
2
3 set -e
4
5 # $Id: stump-pgp,v 1.2 2007/05/03 23:47:55 rram Exp $
6 # Modified to work with GPG
7
8 if [ "$PGP" = "none" ] ; then
9   cat
10 else 
11   if [ "x$PGP" = "x" ] ; then
12     if which gpg ; then
13       gpg $@
14     else
15       cat $@
16       echo used cat because gpg was not found 1>&2
17     fi
18   else
19     if [ -x $PGP ] ; then
20       $PGP $@
21     else
22       echo Please define variable PGP in your admin/etc/modenv file 1>&2
23       gpg $@
24     fi
25   fi
26 fi