File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ function update_script() {
2929 exit
3030 fi
3131
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
32+ RELEASE =$( curl -fsSL https://api.github.com/repos/mealie-recipes/mealie/releases/latest | jq -r ' . tag_name | sub("^v"; "") ' )
33+ if [[ " ${RELEASE } " != " $( 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
@@ -44,7 +44,7 @@ function update_script() {
4444 cp -f /opt/mealie/start.sh /opt/mealie/start.sh.bak
4545 msg_ok " Backup completed"
4646
47- fetch_and_deploy_gh_release " mealie" " mealie-recipes/mealie" " tarball" " $RELEASE " " /opt/mealie"
47+ fetch_and_deploy_gh_release " mealie" " mealie-recipes/mealie" " tarball" " latest " " /opt/mealie"
4848
4949 msg_info " Rebuilding Frontend"
5050 export NUXT_TELEMETRY_DISABLED=1
@@ -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${VERSION } "
85+ msg_ok " No update required. ${APP} is already at v${RELEASE } "
8686 fi
8787 exit
8888}
You can’t perform that action at this time.
0 commit comments