sync: auto-sync from GURU-5070 at 2026-06-02 18:44:13
Author: Mike Swanson Machine: GURU-5070 Timestamp: 2026-06-02 18:44:13
This commit is contained in:
@@ -259,7 +259,8 @@ PS
|
||||
echo "[OK] Uploaded chunk $IDX/$N_CHUNKS"
|
||||
done
|
||||
|
||||
echo "[INFO] Decoding and executing probe on endpoint (timeout 240s)..."
|
||||
EXEC_TIMEOUT="${DIAG_EXEC_TIMEOUT:-240}"
|
||||
echo "[INFO] Decoding and executing probe on endpoint (timeout ${EXEC_TIMEOUT}s)..."
|
||||
|
||||
# Final command: decode base64 file -> .ps1, run it, then clean up both temp files.
|
||||
RUN_SCRIPT="$WORK_DIR/runcmd.ps1"
|
||||
@@ -278,7 +279,7 @@ try {
|
||||
}
|
||||
PS
|
||||
|
||||
RESULT="$(dispatch_one "$RUN_SCRIPT" 240)" || { echo "[ERROR] Probe execution dispatch failed" >&2; exit 1; }
|
||||
RESULT="$(dispatch_one "$RUN_SCRIPT" "$EXEC_TIMEOUT")" || { echo "[ERROR] Probe execution dispatch failed" >&2; exit 1; }
|
||||
CMD_ID="$(cat "$WORK_DIR/last_cmd_id" 2>/dev/null || echo unknown)"
|
||||
|
||||
FINAL_STATUS="$(echo "$RESULT" | jq -r '.status // empty')"
|
||||
|
||||
Reference in New Issue
Block a user