summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKarel Zak2016-10-01 01:20:06 +0200
committerKarel Zak2016-10-01 01:20:06 +0200
commitb5a58919a932954a643fae53e74dfd96d3c1ff9d (patch)
treeaaf2d9f3c0313a2b4ab65063fe3e5013ad4e3aed /tools
parentbuild-sys: release++ (v2.29-rc1) (diff)
downloadkernel-qcow2-util-linux-b5a58919a932954a643fae53e74dfd96d3c1ff9d.tar.gz
kernel-qcow2-util-linux-b5a58919a932954a643fae53e74dfd96d3c1ff9d.tar.xz
kernel-qcow2-util-linux-b5a58919a932954a643fae53e74dfd96d3c1ff9d.zip
tools: make ko-release-gen usable with gpg2
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ko-release-gen3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ko-release-gen b/tools/ko-release-gen
index 2cee64c68..193b5d547 100755
--- a/tools/ko-release-gen
+++ b/tools/ko-release-gen
@@ -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