From 7f315eb3f831973f9e07ba4c84cb094321f18591 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 14 Jul 2025 11:01:48 +0200 Subject: [PATCH] Update mealie.sh --- ct/mealie.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/mealie.sh b/ct/mealie.sh index 7a40596c..1f3dd394 100644 --- a/ct/mealie.sh +++ b/ct/mealie.sh @@ -29,8 +29,8 @@ function update_script() { exit fi - VERSION=$(curl -fsSL https://api.github.com/repos/mealie-recipes/mealie/releases/latest | grep -oP '"tag_name":\s*"\K[^"]+' | sed 's/^v//') - if [[ "${VERSION}" != "$(cat ~/.mealie 2>/dev/null)" ]] || [[ ! -f ~/.mealie ]]; then + RELEASE=$(curl -fsSL https://api.github.com/repos/mealie-recipes/mealie/releases/latest | jq -r '.tag_name | sub("^v"; "")') + if [[ "${RELEASE}" != "$(cat ~/.mealie 2>/dev/null)" ]] || [[ ! -f ~/.mealie ]]; then PYTHON_VERSION="3.12" setup_uv NODE_MODULE="yarn" NODE_VERSION="20" setup_nodejs @@ -44,7 +44,7 @@ function update_script() { cp -f /opt/mealie/start.sh /opt/mealie/start.sh.bak msg_ok "Backup completed" - fetch_and_deploy_gh_release "mealie" "mealie-recipes/mealie" "tarball" "$RELEASE" "/opt/mealie" + fetch_and_deploy_gh_release "mealie" "mealie-recipes/mealie" "tarball" "latest" "/opt/mealie" msg_info "Rebuilding Frontend" export NUXT_TELEMETRY_DISABLED=1 @@ -82,7 +82,7 @@ function update_script() { msg_ok "Update to $RELEASE Successful" else - msg_ok "No update required. ${APP} is already at v${VERSION}" + msg_ok "No update required. ${APP} is already at v${RELEASE}" fi exit }