Expand Up
@@ -61,17 +61,17 @@ if [ "$CORE_CV" != "$CORE_LV" ] || [ -z "$CORE_CV" ]; then
LOG_OUT " 【TUN】Core Downloading, Please Try to Download and Upload Manually If Fails"
if [ " $github_address_mod " != " 0" ]; then
if [ " $github_address_mod " == " https://cdn.jsdelivr.net/" ] || [ " $github_address_mod " == " https://fastly.jsdelivr.net/" ] || [ " $github_address_mod " == " https://testingcf.jsdelivr.net/" ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 " $github_address_mod " gh/vernesong/OpenClash@" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 " $github_address_mod " gh/vernesong/OpenClash@" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
elif [ " $github_address_mod " == " https://raw.fastgit.org/" ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 https://raw.fastgit.org/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://raw.fastgit.org/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
else
curl -SsL -m 30 --speed-time 15 --speed-limit 1 " $github_address_mod " https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 " $github_address_mod " https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
fi
else
curl -SsL -m 30 --speed-time 15 --speed-limit 1 https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
fi
if [ " ${PIPESTATUS[0]} " -ne 0 ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 --retry 2 https://ftp.jaist.ac.jp/pub/sourceforge.jp/storage/g/o/op/openclash/" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://ftp.jaist.ac.jp/pub/sourceforge.jp/storage/g/o/op/openclash/" $RELEASE_BRANCH " /core-lateset/premium/clash-" $CPU_MODEL " -" $CORE_LV " .gz -o /tmp/clash_tun.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_tun.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl_status=${PIPESTATUS[0]}
else
curl_status=0
Expand All
@@ -84,17 +84,17 @@ if [ "$CORE_CV" != "$CORE_LV" ] || [ -z "$CORE_CV" ]; then
LOG_OUT " 【Meta】Core Downloading, Please Try to Download and Upload Manually If Fails"
if [ " $github_address_mod " != " 0" ]; then
if [ " $github_address_mod " == " https://cdn.jsdelivr.net/" ] || [ " $github_address_mod " == " https://fastly.jsdelivr.net/" ] || [ " $github_address_mod " == " https://testingcf.jsdelivr.net/" ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 " $github_address_mod " gh/vernesong/OpenClash@" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 " $github_address_mod " gh/vernesong/OpenClash@" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
elif [ " $github_address_mod " == " https://raw.fastgit.org/" ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 https://raw.fastgit.org/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://raw.fastgit.org/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
else
curl -SsL -m 30 --speed-time 15 --speed-limit 1 " $github_address_mod " https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 " $github_address_mod " https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
fi
else
curl -SsL -m 30 --speed-time 15 --speed-limit 1 https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
fi
if [ " ${PIPESTATUS[0]} " -ne 0 ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 --retry 2 https://ftp.jaist.ac.jp/pub/sourceforge.jp/storage/g/o/op/openclash/" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://ftp.jaist.ac.jp/pub/sourceforge.jp/storage/g/o/op/openclash/" $RELEASE_BRANCH " /core-lateset/meta/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash_meta.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash_meta.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl_status=${PIPESTATUS[0]}
else
curl_status=0
Expand All
@@ -107,17 +107,17 @@ if [ "$CORE_CV" != "$CORE_LV" ] || [ -z "$CORE_CV" ]; then
LOG_OUT " 【Dev】Core Downloading, Please Try to Download and Upload Manually If Fails"
if [ " $github_address_mod " != " 0" ]; then
if [ " $github_address_mod " == " https://cdn.jsdelivr.net/" ] || [ " $github_address_mod " == " https://fastly.jsdelivr.net/" ] || [ " $github_address_mod " == " https://testingcf.jsdelivr.net/" ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 " $github_address_mod " gh/vernesong/OpenClash@" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 " $github_address_mod " gh/vernesong/OpenClash@" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
elif [ " $github_address_mod " == " https://raw.fastgit.org/" ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 https://raw.fastgit.org/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://raw.fastgit.org/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
else
curl -SsL -m 30 --speed-time 15 --speed-limit 1 " $github_address_mod " https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 " $github_address_mod " https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
fi
else
curl -SsL -m 30 --speed-time 15 --speed-limit 1 https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
fi
if [ " ${PIPESTATUS[0]} " -ne 0 ]; then
curl -SsL -m 30 --speed-time 15 --speed-limit 1 --retry 2 https://ftp.jaist.ac.jp/pub/sourceforge.jp/storage/g/o/op/openclash/" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl -SsL --connect-timeout 10 - m 30 --speed-time 15 --speed-limit 1 --retry 2 https://ftp.jaist.ac.jp/pub/sourceforge.jp/storage/g/o/op/openclash/" $RELEASE_BRANCH " /core-lateset/dev/clash-" $CPU_MODEL " .tar.gz -o /tmp/clash.tar.gz 2>&1 | awk -v time=" $( date " +%Y-%m-%d %H:%M:%S" ) " -v file=" /tmp/clash.tar.gz" ' {print time "【" file "】Download Failed:【"$0"】"}' >> " $LOG_FILE "
curl_status=${PIPESTATUS[0]}
else
curl_status=0
Expand Down