]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tools: make ko-release-gen usable with gpg2
authorKarel Zak <kzak@redhat.com>
Fri, 30 Sep 2016 23:20:06 +0000 (01:20 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Sep 2016 23:20:06 +0000 (01:20 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tools/ko-release-gen

index 2cee64c682fc024ef4a6364debf3a41ec9c122b7..193b5d547a26d7db74bda0e78c4d50d1d76409f5 100755 (executable)
@@ -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