summaryrefslogtreecommitdiff
path: root/gpg/gpg2.sh
blob: 4e4cbaaea262b0b84f8162617f1e8e20717451a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

if [ -z "$1" ]; then
  echo "Usage: $0 <environment> [ .. additional parameters passwd on to gpg2 .. ]"
  exit 1
fi
NAME="$1"
shift

exec gpg2 --keyring "${BASH_SOURCE%/*}/vault-keyring-$NAME.gpg" --secret-keyring /dev/null --no-options --no-default-keyring --trust-model always --keyid-format 0xlong "$@"