update DB table
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user