Skip to content

Commit 84808bb

Browse files
committed
Use --compressed in curl invocation since it's returning gzipped content randomly
1 parent ef96a96 commit 84808bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fi
1010
versions=( "${versions[@]%/}" )
1111

1212
for version in "${versions[@]}"; do
13-
fullVersion="$(curl -sSL "http://cache.ruby-lang.org/pub/ruby/$version/" \
13+
fullVersion="$(curl -sSL --compressed "http://cache.ruby-lang.org/pub/ruby/$version/" \
1414
| grep -E '<a href="ruby-'"$version"'.[^"]+\.tar\.bz2' \
1515
| grep -vE 'preview|rc' \
1616
| sed -r 's!.*<a href="ruby-([^"]+)\.tar\.bz2.*!\1!' \

0 commit comments

Comments
 (0)