summaryrefslogtreecommitdiffstats
path: root/pgpewrap
blob: 37f9facd5d987609ef3a45c69758c7c989f9d51b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh --

cmd=$1
pfx=""

die() {
	echo "Command line usage: $0 [flags] -- prefix [recipients]" >& 2
	exit 1
}

while test $# -gt 0 && shift && test -n "$1" ; do
	if test "$1" = "--" ; then
		shift || die
		pfx="$1"
		shift || die
	fi
	cmd="$cmd $pfx $1"
done

exec $cmd