From cec9fe4614a3362ed8aaaef04038109b89a9ae41 Mon Sep 17 00:00:00 2001 From: gently Date: Mon, 16 Dec 2019 22:20:53 +0800 Subject: [PATCH] auto commit. script output--- --- start.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index 586bcb69..27f68d7f 100755 --- a/start.sh +++ b/start.sh @@ -40,7 +40,9 @@ fi echo '开始下载 hosts1...' -wget -O ./origin-files/hosts1 --timeout 60 https://hosts.nfz.moe/full/hosts +curl -o ./origin-files/hosts1 --connect-timeout 60 \ + -s \ + https://hosts.nfz.moe/full/hosts # shellcheck disable=SC2181 if [ $? -ne 0 ];then @@ -49,7 +51,9 @@ if [ $? -ne 0 ];then fi echo '开始下载 hosts2...' -wget -O ./origin-files/hosts2 --timeout 60 https://raw.githubusercontent.com/vokins/yhosts/master/hosts +curl -o ./origin-files/hosts2 --connect-timeout 60 \ + -s \ + https://raw.githubusercontent.com/vokins/yhosts/master/hosts # shellcheck disable=SC2181 if [ $? -ne 0 ];then @@ -58,7 +62,9 @@ if [ $? -ne 0 ];then fi echo '开始下载 hosts3...' -wget -O ./origin-files/hosts3 --timeout 60 https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts +curl -o ./origin-files/hosts3 --connect-timeout 60 \ + -s \ + https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts # shellcheck disable=SC2181 if [ $? -ne 0 ];then