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