From e3718d5c63bcb7a320d1243c59611bcc1a5559f9 Mon Sep 17 00:00:00 2001 From: Vincent <114195376+HydroshieldMKII@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:36:26 -0400 Subject: [PATCH] Refactor update_script function to streamline update process and ensure version tracking --- ct/guardian.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/guardian.sh b/ct/guardian.sh index 09c774cc..b3c4634b 100644 --- a/ct/guardian.sh +++ b/ct/guardian.sh @@ -50,17 +50,17 @@ function update_script() { unzip -q "${RELEASE}.zip" rm -rf /opt/Guardian mv "Guardian-${RELEASE}/" "/opt/Guardian" - + # Build Backend cd /opt/Guardian/backend npm ci npm run build - + # Build Frontend cd /opt/Guardian/frontend npm ci npm run build - + echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}"