This commit is contained in:
2025-11-08 08:29:51 -05:00
parent 13ee7a84e1
commit 471d84215c
2 changed files with 18 additions and 8 deletions
+6
View File
@@ -7,6 +7,12 @@ COMMENTER_INPUT="${2:-}"
COMMENTER_EXITCODE="${3:-0}"
WORKING_DIR="${4:-}"
# If WORKING_DIR is numeric (likely passed exitcode by mistake), reset it
if [[ "$WORKING_DIR" =~ ^[0-9]+$ ]]; then
echo "⚠️ Detected numeric working_dir ('$WORKING_DIR'); treating as unset."
WORKING_DIR=""
fi
# === Move into working directory if specified ========================
if [[ -n "$WORKING_DIR" ]]; then
echo "🔹 Changing to working directory: $WORKING_DIR"