update DB table

This commit is contained in:
2025-12-28 03:46:11 +01:00
parent de08431e53
commit 1ae11b02ce
3 changed files with 11 additions and 4 deletions

View File

@@ -38,8 +38,9 @@ EOF
# 1. CD into the repo path
# 2. Execute command and capture output
# 3. PIPESTATUS[0] captures the exit code of the eval "$CMD"
export PYTHONUNBUFFERED=1
echo "--- Execution Start ---" | tee -a >(sed 's/$/<br>/' >> "$LOG_FILE")
cd "$REPO_PATH" && eval "$CMD" 2>&1 | tee -a >(sed 's/$/<br>/' >> "$LOG_FILE")
cd "$REPO_PATH" && stdbuf -oL -eL eval "$CMD" 2>&1 | tee -a >(sed 's/$/<br>/' >> "$LOG_FILE")
EXIT_CODE=${PIPESTATUS[0]}
echo "--- Execution End (Exit Code: $EXIT_CODE) ---" | tee -a >(sed 's/$/<br>/' >> "$LOG_FILE")