mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-06-26 13:41:01 +02:00
URLs without anchors do not have checksums
This commit is contained in:
parent
7182bde310
commit
86f9cb7d60
1 changed files with 3 additions and 2 deletions
|
@ -204,9 +204,10 @@ fetch_tarball() {
|
||||||
local package_name="$1"
|
local package_name="$1"
|
||||||
local package_url="$2"
|
local package_url="$2"
|
||||||
local mirror_url
|
local mirror_url
|
||||||
|
local checksum
|
||||||
|
|
||||||
local checksum="${package_url#*\#}"
|
if [ "$package_url" != "${package_url/\#}" ]; then
|
||||||
if [ -n "$checksum" ]; then
|
checksum="${package_url#*#}"
|
||||||
package_url="${package_url%%#*}"
|
package_url="${package_url%%#*}"
|
||||||
|
|
||||||
if [ -n "$RUBY_BUILD_MIRROR_URL" ]; then
|
if [ -n "$RUBY_BUILD_MIRROR_URL" ]; then
|
||||||
|
|
Loading…
Reference in a new issue