#!/bin/bash if [ -z "$1" ]; then echo "Usage: $0 [ .. additional parameters passwd on to gpg2 .. ]" exit 1 fi NAME="$1" shift BIN=$(which gpg2) if [ $? -ne 0 ]; then BIN=$(which gpg) fi exec $BIN --keyring "${BASH_SOURCE%/*}/vault-keyring-$NAME.gpg" --secret-keyring /dev/null --no-options --no-default-keyring --trust-model always --keyid-format 0xlong "$@"