From d75a384d706df63ce339d2c60f92e1204fb88fd8 Mon Sep 17 00:00:00 2001 From: tsosunchia <59512455+tsosunchia@users.noreply.github.com> Date: Sun, 4 Jun 2023 13:12:40 +0800 Subject: [PATCH] Update nt_install.sh --- nt_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nt_install.sh b/nt_install.sh index 1b1ab3a..6d8f941 100644 --- a/nt_install.sh +++ b/nt_install.sh @@ -93,7 +93,7 @@ checkWgetPackage() { downloadBinrayFile() { echo -e "${Info} 获取最新版的 NextTrace 发行版文件信息" # 简单说明一下,Github提供了一个API,可以获取最新发行版本的二进制文件下载地址(对应的是browser_download_url),根据刚刚测得的osDistribution、archParam,获取对应的下载地址 - latestURL=$(curl -s https://api.github.com/repos/sjlleo/nexttrace/releases/latest | grep -i "browser_download_url.*${osDistribution}.*${archParam}" | awk -F '"' '{print $4}') + latestURL=$(curl -sL https://api.github.com/repos/sjlleo/nexttrace-core/releases/latest | grep -i "browser_download_url.*${osDistribution}.*${archParam}" | awk -F '"' '{print $4}') if [ "$countryCode" == "CN" ]; then echo -e "${Info} 检测到国内环境,正在使用镜像下载"