Skip to content

Commit 6402ef4

Browse files
committed
Accept https://
1 parent f996be6 commit 6402ef4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dev/release/release.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ rc=$2
3131
git_origin_url="$(git remote get-url origin)"
3232
repository="${git_origin_url#*github.com?}"
3333
repository="${repository%.git}"
34-
if [ "${git_origin_url}" != "[email protected]:apache/arrow-java.git" ]; then
34+
case "${git_origin_url}" in
35+
[email protected]:apache/arrow-java.git | https://github.com/apache/arrow-java.git)
36+
: # OK
37+
;;
38+
*)
3539
echo "This script must be ran with working copy of apache/arrow-java."
3640
echo "The origin's URL: ${git_origin_url}"
3741
exit 1
38-
fi
42+
;;
43+
esac
3944

4045
tag="v${version}"
4146
rc_tag="${tag}-rc${rc}"

0 commit comments

Comments
 (0)