From f779d6dd55352566b5c2f167883c7f973b3339cc Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Tue, 30 Aug 2016 13:13:39 +0800 Subject: [PATCH] install: use git clone --depth=1 instead of curl --- install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 9d7dbf05d9..66d3674937 100755 --- a/install.sh +++ b/install.sh @@ -10,9 +10,7 @@ CONF_WITH_SERVERS=(accelerated-domains.china google.china) CONF_SIMPLE=(bogus-nxdomain.china) echo "Downloading latest configurations..." -for _conf in "${CONF_WITH_SERVERS[@]}" "${CONF_SIMPLE[@]}"; do - curl -L -o "$WORKDIR/$_conf.conf" "https://github.com/felixonmars/dnsmasq-china-list/raw/master/$_conf.conf" -done +git clone --depth=1 https://github.com/felixonmars/dnsmasq-china-list.git "$WORKDIR" echo "Removing old configurations..." for _conf in "${CONF_WITH_SERVERS[@]}" "${CONF_SIMPLE[@]}"; do