You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ru...@apache.org on 2022/06/01 19:35:49 UTC

[iceberg] 03/03: Dev: Fix Source Release Script (#4932)

This is an automated email from the ASF dual-hosted git repository.

russellspitzer pushed a commit to branch 0.13.x
in repository https://gitbox.apache.org/repos/asf/iceberg.git

commit fae977a9f0a79266a04647b0df2ab540cf0dcff4
Author: Russell Spitzer <rs...@apple.com>
AuthorDate: Wed Jun 1 13:48:42 2022 -0500

    Dev: Fix Source Release Script (#4932)
---
 dev/source-release.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev/source-release.sh b/dev/source-release.sh
index 67c2621cf..5f145f357 100755
--- a/dev/source-release.sh
+++ b/dev/source-release.sh
@@ -36,7 +36,7 @@ usage () {
 }
 
 # Default repository remote name
-remote="origin"
+remote="apache"
 
 while getopts "v:r:k:g:d" opt; do
   case "${opt}" in
@@ -112,9 +112,9 @@ tarball=$tag.tar.gz
 git archive $release_hash --worktree-attributes --prefix $tag/ -o $projectdir/$tarball
 
 echo "Signing the tarball..."
-[[ -z "$keyid" ]] && keyopt="-u $keyid"
-gpg --detach-sig $keyopt --armor --output ${projectdir}/${tarball}.asc ${projectdir}/$tarball
-shasum -a 512 ${projectdir}/$tarball > ${projectdir}/${tarball}.sha512
+[[ -n "$keyid" ]] && keyopt="-u $keyid"
+gpg $keyopt --armor --output ${projectdir}/${tarball}.asc --detach-sig ${projectdir}/$tarball
+shasum -a 512 $tarball > ${projectdir}/${tarball}.sha512
 
 
 echo "Checking out Iceberg RC subversion repo..."