更新 sh/reality_hy2_ws.sh
This commit is contained in:
parent
1cf6ce8f8f
commit
ee7d4ccc5c
@ -83,9 +83,9 @@ download_singbox(){
|
|||||||
esac
|
esac
|
||||||
# Fetch the latest (including pre-releases) release version number from GitHub API
|
# Fetch the latest (including pre-releases) release version number from GitHub API
|
||||||
# 正式版
|
# 正式版
|
||||||
#latest_version_tag=$(curl -s "https://gitee.com/api/v5/repos/peace-talent/s-box/releases" | grep -Po '"tag_name": "\K.*?(?=")' | head -n 1)
|
#latest_version_tag=$(curl -s "https://gitee.com/api/v5/repos/peace-talent/s-box/releases" | grep -Po '"tag_name":"\K.*?(?=")' | head -n 1)
|
||||||
#beta版本
|
#beta版本
|
||||||
latest_version_tag=$(curl -s "https://gitee.com/api/v5/repos/peace-talent/s-box/releases" | grep -Po '"tag_name": "\K.*?(?=")' | sort -V | tail -n 1)
|
latest_version_tag=$(curl -s "https://gitee.com/api/v5/repos/peace-talent/s-box/releases" | grep -Po '"tag_name":"\K.*?(?=")' | sort -V | tail -n 1)
|
||||||
latest_version=${latest_version_tag#v} # Remove 'v' prefix from version number
|
latest_version=${latest_version_tag#v} # Remove 'v' prefix from version number
|
||||||
echo "Latest version: $latest_version"
|
echo "Latest version: $latest_version"
|
||||||
# Detect server architecture
|
# Detect server architecture
|
||||||
|
Loading…
Reference in New Issue
Block a user