mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
Automatically download the jruby archive if it is not already in RELEASE_DIRECTORY
This commit is contained in:
parent
e7cfd78cf2
commit
7e59004c9d
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@ file="share/ruby-build/jruby-${version}"
|
|||
|
||||
basename="jruby-bin-${version}.tar.gz"
|
||||
url="https://s3.amazonaws.com/jruby.org/downloads/${version}/${basename}"
|
||||
sha256=$(sha256sum "$release_directory/$basename" | cut -d ' ' -f 1)
|
||||
archive="$release_directory/$basename"
|
||||
[ -e "$archive" ] || wget -O "$archive" "$url"
|
||||
sha256=$(sha256sum "$archive" | cut -d ' ' -f 1)
|
||||
|
||||
cat > "$file" <<EOS
|
||||
require_java 8
|
||||
|
|
Loading…
Reference in a new issue