#!/bin/bash set -e # $Id: stump-pgp,v 1.2 2007/05/03 23:47:55 rram Exp $ # Modified to work with GPG if [ "$PGP" = "none" ] ; then cat else if [ "x$PGP" = "x" ] ; then if which gpg ; then gpg $@ else cat $@ echo used cat because gpg was not found 1>&2 fi else if [ -x $PGP ] ; then $PGP $@ else echo Please define variable PGP in your admin/etc/modenv file 1>&2 gpg $@ fi fi fi