From d6b380236bca3903e31b21a740f6f9e408c44b7b Mon Sep 17 00:00:00 2001 From: frankbria Date: Fri, 5 Sep 2025 22:27:19 -0700 Subject: [PATCH] Fix syntax error in ralph_loop.sh line 280 Remove quotes from echo statements in grep fallback values to ensure numeric comparisons work correctly in bash arithmetic expressions. --- ralph_loop.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ralph_loop.sh b/ralph_loop.sh index 09b086d..83ef61e 100755 --- a/ralph_loop.sh +++ b/ralph_loop.sh @@ -272,8 +272,8 @@ should_exit_gracefully() { # 4. Check fix_plan.md for completion if [[ -f "@fix_plan.md" ]]; then - local total_items=$(grep -c "^- \[" "@fix_plan.md" 2>/dev/null || echo "0") - local completed_items=$(grep -c "^- \[x\]" "@fix_plan.md" 2>/dev/null || echo "0") + local total_items=$(grep -c "^- \[" "@fix_plan.md" 2>/dev/null || echo 0) + local completed_items=$(grep -c "^- \[x\]" "@fix_plan.md" 2>/dev/null || echo 0) log_status "INFO" "DEBUG: @fix_plan.md check - total_items:$total_items, completed_items:$completed_items" >&2