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

aw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/yetus-homebrew.git


The following commit(s) were added to refs/heads/main by this push:
     new 8f3b35a  YETUS-1095. homebrew release process does not work (#4)
8f3b35a is described below

commit 8f3b35a56eb14c6ce8f64fce1feaff85abe38c7a
Author: Allen Wittenauer <[email protected]>
AuthorDate: Wed Sep 22 08:20:03 2021 -0700

    YETUS-1095. homebrew release process does not work (#4)
---
 release.sh         | 1 +
 update-homebrew.sh | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/release.sh b/release.sh
index ed2040e..4586fb3 100755
--- a/release.sh
+++ b/release.sh
@@ -61,6 +61,7 @@ git rebase origin/main
 docker run -i --rm \
   -v "${PWD}:/src" \
   -u "${USER_ID}" \
+  -w /src \
   "apache/yetus:main" \
     ./update-homebrew.sh "${VERSION}"
 
diff --git a/update-homebrew.sh b/update-homebrew.sh
index 0cf2038..32cb631 100755
--- a/update-homebrew.sh
+++ b/update-homebrew.sh
@@ -41,12 +41,14 @@ sed -E -i 
"s,[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+,${VERSION},g" Formula/yetu
 
 URL=$(awk '/url/ {print $NF}' Formula/yetus.rb)
 URL=${URL//\"/}
+MIRRORURL=$(awk '/mirror/ {print $NF}' Formula/yetus.rb)
+MIRRORURL=${MIRRORURL//\"/}
 
-curl --location --fail --output "/tmp/yetus-binary.tgz" "${URL}"
+curl --location --fail --output "/tmp/yetus-binary.tgz" "${MIRRORURL}"
 
 
 if ! tar tzf /tmp/yetus-binary.tgz >/dev/null; then
-  echo "ERROR: Failed to download a tgz file from ${URL}"
+  echo "ERROR: Failed to download a tgz file from ${MIRRORURL}"
   exit 1
 fi
 

Reply via email to