From c2c48b52c7008ce5d6011ad37330ab987cfdea7d Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 25 Oct 2024 05:22:56 -0400 Subject: [PATCH] Update zoraxy.sh tweak --- ct/zoraxy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/zoraxy.sh b/ct/zoraxy.sh index 7ab7a132..887aaf65 100644 --- a/ct/zoraxy.sh +++ b/ct/zoraxy.sh @@ -55,7 +55,7 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/zoraxy/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then +if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] ; then RELEASE=$(curl -s https://api.github.com/repos/tobychui/zoraxy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') msg_info "Updating $APP to ${RELEASE}" systemctl stop zoraxy