tools: make ko-release-gen usable with gpg2

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2016-10-01 01:20:06 +02:00
parent 37301faa01
commit b5a58919a9
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ VERSION_MAJOR=$(echo $VERSION | sed 's/-rc[0-9]//; s/\(.*\..*\)\..*/\1/')
VERSION_DOCS=$(echo $VERSION | sed 's/-rc[0-9]//')
DISTDIR=${1:-"kernel.org"}/v${VERSION_MAJOR}
GPG_CMD="gpg --use-agent --armor --detach-sign --quiet"
GPG_PROG=${GPG_PROG:-"gpg"}
GPG_CMD="$GPG_PROG --use-agent --armor --detach-sign --quiet"
die() {
echo $1