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