From 936c3e6146eca9ab6bd25d04d60771161e771c5e Mon Sep 17 00:00:00 2001 From: cclohmar Date: Sun, 14 Jun 2026 18:12:52 +0000 Subject: [PATCH] fix(update): show commit hash in output to verify code changes --- update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index fea5e7f..027008b 100755 --- a/update.sh +++ b/update.sh @@ -25,6 +25,7 @@ rm -rf "$REPO_DIR" 2>/dev/null git clone --depth 1 "$REPO_URL" "$REPO_DIR" --quiet VERSION=$(cat "$REPO_DIR/VERSION" 2>/dev/null || echo "dev") +COMMIT_SHA=$(cd "$REPO_DIR" && git rev-parse --short HEAD 2>/dev/null || echo "unknown") # Build cd "$REPO_DIR/src" @@ -47,7 +48,7 @@ sleep 2 # Verify if curl -s --max-time 3 http://localhost:8080/api/health | grep -q ok; then - ok "NextWks updated to v${VERSION}" + ok "NextWks updated to v${VERSION} (${COMMIT_SHA})" info "Users bootstrapped from Authelia" else echo "Health check failed — check: sudo journalctl -u nextwks -n 20"