From 921a6b03d06388a4fc47c6cdddc8202193c3bb17 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 14 Jul 2025 14:50:20 +0200 Subject: [PATCH] Update bar-assistant.sh --- ct/bar-assistant.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/bar-assistant.sh b/ct/bar-assistant.sh index 6d66dbd9..f20a2b9f 100644 --- a/ct/bar-assistant.sh +++ b/ct/bar-assistant.sh @@ -33,7 +33,7 @@ function update_script() { RELEASE_BARASSISTANT=$(curl -fsSL https://api.github.com/repos/karlomikus/bar-assistant/releases/latest | jq -r '.tag_name') RELEASE_SALTRIM=$(curl -fsSL https://api.github.com/repos/karlomikus/vue-salt-rim/releases/latest | jq -r '.tag_name') - if [[ "${RELEASE_BARASSISTANT}" != "$(cat ~/.bar-assistant 2>/dev/null)" ]] || [[ ! -f ~/.bar-assistant ]]; then + if [[ "v${RELEASE_BARASSISTANT}" != "$(cat ~/.bar-assistant 2>/dev/null)" ]] || [[ ! -f ~/.bar-assistant ]]; then msg_info "Stopping nginx" systemctl stop nginx msg_ok "Stopped nginx" @@ -70,7 +70,7 @@ function update_script() { msg_ok "No update required. ${APP} is already at ${RELEASE_BARASSISTANT}" fi - if [[ "${RELEASE_SALTRIM}" != "$(cat ~/.vue-salt-rim 2>/dev/null)" ]] || [[ ! -f ~/.vue-salt-rim ]]; then + if [[ "v${RELEASE_SALTRIM}" != "$(cat ~/.vue-salt-rim 2>/dev/null)" ]] || [[ ! -f ~/.vue-salt-rim ]]; then msg_info "Backing up Vue Salt Rim" mv /opt/vue-salt-rim /opt/vue-salt-rim-backup msg_ok "Backed up Vue Salt Rim"