Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 956bf85

Browse files
authored
Update install.sh for curl related
1 parent 7f0eb6b commit 956bf85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ install_x-ui() {
121121
cd /usr/local/
122122

123123
if [ $# == 0 ]; then
124-
last_version=$(curl -Ls "https://api.github.com/repos/FranzKafkaYu/x-ui/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
124+
last_version=$(curl -Lsk "https://api.github.com/repos/FranzKafkaYu/x-ui/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
125125
if [[ ! -n "$last_version" ]]; then
126126
echo -e "${red}检测 x-ui 版本失败,可能是超出 Github API 限制,请稍后再试,或手动指定 x-ui 版本安装${plain}"
127127
exit 1

0 commit comments

Comments
 (0)