fix rubygems.sh

This commit is contained in:
bigeagle 2016-12-11 17:20:14 +08:00
parent a8426387fc
commit 79eef3d7d6
No known key found for this signature in database
GPG Key ID: 9171A4571C27920A

View File

@ -18,14 +18,14 @@ echo "Syncing to $TUNASYNC_WORKING_DIR"
cat > $CONF << EOF cat > $CONF << EOF
--- ---
- from: https://rubygems.org - from: https://rubygems.org
to: ${TUNASYNC_WORKING_DIR} to: ${TUNASYNC_WORKING_DIR}
parallelism: 10 parallelism: 10
retries: 2 retries: 2
delete: true delete: true
skiperror: true skiperror: true
EOF EOF
if [[ $INT == "0" ]]; then if [[ $INIT == "0" ]]; then
if [[ $BUSYBOX == "0" ]]; then if [[ $BUSYBOX == "0" ]]; then
timeout -t 7200 -s INT $GEM mirror -V timeout -t 7200 -s INT $GEM mirror -V
else else