From bbc667f3a672c8dd4b232e33c9d0934b27e6af8d Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Wed, 19 Jun 2024 19:56:23 +0200 Subject: [PATCH] arc: rewrite updatecheck Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index 91b2a991..badf6649 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -47,11 +47,11 @@ for ETH in ${ETHX}; do # Update Check NEWTAG=$(curl --interface ${ETH} -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | sort -rV | head -1) if [ -n "${NEWTAG}" ]; then - NEWTAG="${ARC_VERSION}" ARCNIC=${ETH} break fi done +[ -z "${NEWTAG}" ] && NEWTAG="${ARC_VERSION}" if [ -n "${ARCNIC}" ]; then writeConfigKey "arc.offline" "false" "${USER_CONFIG_FILE}" elif [ -z "${ARCNIC}" ] && [ "${CUSTOM}" == "false" ]; then