From ceb790f9d9bdf8c53cbccf721b34404e3cb424f2 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Sun, 15 Dec 2024 12:50:03 +0330 Subject: [PATCH] Refactored check_version function to use variables from path.sh --- core/scripts/utils.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/scripts/utils.sh b/core/scripts/utils.sh index 5c6204b..56af85d 100644 --- a/core/scripts/utils.sh +++ b/core/scripts/utils.sh @@ -40,9 +40,9 @@ version_greater_equal() { } check_version() { - local_version=$(cat /etc/hysteria/VERSION) - latest_version=$(curl -s https://raw.githubusercontent.com/ReturnFI/Hysteria2/main/VERSION) - latest_changelog=$(curl -s https://raw.githubusercontent.com/ReturnFI/Hysteria2/main/changelog) + local_version=$(cat $LOCALVERSION) + latest_version=$(curl -s $LATESTVERSION) + latest_changelog=$(curl -s $LASTESTCHANGE) if version_greater_equal "$local_version" "$latest_version"; then echo -e "Panel Version: ${cyan}$local_version${NC}"