Curl main branch
This commit is contained in:
@ -42,7 +42,7 @@ version_greater_equal() {
|
|||||||
check_version() {
|
check_version() {
|
||||||
local_version=$(cat /etc/hysteria/VERSION)
|
local_version=$(cat /etc/hysteria/VERSION)
|
||||||
latest_version=$(curl -s https://raw.githubusercontent.com/ReturnFI/Hysteria2/main/VERSION)
|
latest_version=$(curl -s https://raw.githubusercontent.com/ReturnFI/Hysteria2/main/VERSION)
|
||||||
latest_changelog=$(curl -s https://raw.githubusercontent.com/ReturnFI/Hysteria2/dev/changelog)
|
latest_changelog=$(curl -s https://raw.githubusercontent.com/ReturnFI/Hysteria2/main/changelog)
|
||||||
|
|
||||||
if version_greater_equal "$local_version" "$latest_version"; then
|
if version_greater_equal "$local_version" "$latest_version"; then
|
||||||
echo -e "Panel Version: ${cyan}$local_version${NC}"
|
echo -e "Panel Version: ${cyan}$local_version${NC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user