Skip to content

Commit b2cdb23

Browse files
Tak Lon (Stephen) Wuapurtell
authored andcommitted
HBASE-22429 hbase-vote download step requires URL to end with '/' (#243)
1 parent c6759ec commit b2cdb23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev-support/hbase-vote.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ operator may still consider to verify the following manually
7474
3. Other concerns if any
7575
__EOF
7676

77+
[[ "${SOURCE_URL}" != */ ]] && SOURCE_URL="${SOURCE_URL}/"
7778
HBASE_RC_VERSION=$(tr "/" "\n" <<< "${SOURCE_URL}" | tail -n2)
7879
HBASE_VERSION=$(echo "${HBASE_RC_VERSION}" | sed -e 's/RC[0-9]//g' | sed -e 's/hbase-//g')
7980
JAVA_VERSION=$(java -version 2>&1 | cut -f3 -d' ' | head -n1 | sed -e 's/"//g')
@@ -106,7 +107,7 @@ function download_and_import_keys() {
106107

107108
function download_release_candidate () {
108109
# get all files from release candidate repo
109-
wget --recursive --no-parent "${SOURCE_URL}"
110+
wget -r -np -nH --cut-dirs 4 "${SOURCE_URL}"
110111
}
111112

112113
function verify_signatures() {
@@ -169,7 +170,7 @@ __EOF
169170

170171
download_and_import_keys
171172
download_release_candidate
172-
pushd dist.apache.org/repos/dist/dev/hbase/"${HBASE_RC_VERSION}"
173+
pushd "${HBASE_RC_VERSION}"
173174

174175
execute verify_signatures
175176
execute verify_checksums

0 commit comments

Comments
 (0)