mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
rubygems: also download versions file
This commit is contained in:
parent
332cb42cb0
commit
3bd346bbf6
@ -1,6 +1,6 @@
|
||||
FROM ruby:2.7-alpine
|
||||
RUN gem install rubygems-mirror
|
||||
RUN apk add bash
|
||||
RUN apk add bash curl
|
||||
# the command timeout provided by old verison of busybox was incompatible with that from coreutils and is compatible now.
|
||||
ENV BUSYBOX=0
|
||||
ENV HOME=/tmp
|
||||
|
@ -40,4 +40,10 @@ if [[ $ret == 124 ]]; then
|
||||
echo 'Sync timeout (/_\\)'
|
||||
fi
|
||||
|
||||
if [[ $ret == 0 ]]; then
|
||||
curl -fsSL https://rubygems.org/versions > "$TUNASYNC_WORKING_DIR/.versions.new" && \
|
||||
mv "$TUNASYNC_WORKING_DIR/.versions.new" "$TUNASYNC_WORKING_DIR/versions"
|
||||
ret=$?
|
||||
fi
|
||||
|
||||
exit $ret
|
||||
|
Loading…
x
Reference in New Issue
Block a user