Skip to content

Commit ff38239

Browse files
committed
Update mealie.sh
1 parent cdd4590 commit ff38239

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ct/mealie.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ function update_script() {
2929
exit
3030
fi
3131

32-
RELEASE=$(curl -fsSL https://api.github.com/repos/mealie-recipes/mealie/releases/latest | grep -oP '"tag_name":\s*"\K[^"]+' | sed 's/^v//')
33-
if [[ "${RELEASE}" != "$(cat ~/.mealie 2>/dev/null)" ]] || [[ ! -f ~/.mealie ]]; then
32+
VERSION=$(curl -fsSL https://api.github.com/repos/mealie-recipes/mealie/releases/latest | grep -oP '"tag_name":\s*"\K[^"]+' | sed 's/^v//')
33+
if [[ "${VERSION}" != "$(cat ~/.mealie 2>/dev/null)" ]] || [[ ! -f ~/.mealie ]]; then
3434

3535
PYTHON_VERSION="3.12" setup_uv
3636
NODE_MODULE="yarn" NODE_VERSION="20" setup_nodejs
@@ -82,7 +82,7 @@ function update_script() {
8282

8383
msg_ok "Update to $RELEASE Successful"
8484
else
85-
msg_ok "No update required. ${APP} is already at v${RELEASE}"
85+
msg_ok "No update required. ${APP} is already at v${VERSION}"
8686
fi
8787
exit
8888
}

0 commit comments

Comments
 (0)