Update huntarr.sh

This commit is contained in:
CanbiZ 2025-06-18 14:23:51 +02:00
parent c5bf7caa14
commit 9d1f142c28

View File

@ -31,7 +31,7 @@ function update_script() {
setup_uv setup_uv
RELEASE=$(curl -fsSL https://api.github.com/repos/plexguide/Huntarr.io/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}') RELEASE=$(curl -fsSL https://api.github.com/repos/plexguide/Huntarr.io/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
if [[ ! -f ~/.huntarr || "${RELEASE}" != "$(cat ~/.huntarr)" ]]; then if [[ -f ~/.huntarr && "${RELEASE}" == "$(cat ~/.huntarr)" ]]; then
msg_ok "No update required. ${APP} is already at ${RELEASE}" msg_ok "No update required. ${APP} is already at ${RELEASE}"
exit exit
fi fi