Skip to content

Commit 191e584

Browse files
committed
1 parent 9a11639 commit 191e584

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dev/release/release_rc.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ cd "${SOURCE_TOP_DIR}"
4040

4141
if [ "${RELEASE_PULL}" -gt 0 ] || [ "${RELEASE_PUSH_TAG}" -gt 0 ]; then
4242
git_origin_url="$(git remote get-url origin)"
43-
if [ "${git_origin_url}" != "[email protected]:apache/arrow-java.git" ]; then
43+
case "${git_origin_url}" in
44+
[email protected]:apache/arrow-java.git|https://github.com/apache/arrow-java.git)
45+
: # OK
46+
;;
47+
*)
4448
echo "This script must be ran with working copy of apache/arrow-java."
4549
echo "The origin's URL: ${git_origin_url}"
4650
exit 1
51+
;;
4752
fi
4853
fi
4954

0 commit comments

Comments
 (0)