refactor/(run_all_tests.sh): fix grep pattern quoting for consistency

- Change double quotes to single quotes in grep regex pattern
- Improve shell script best practices for pattern matching
- Ensure consistent quoting style with grep -E flag usage
This commit is contained in:
hongwei 2026-01-09 14:29:16 +01:00
parent e9f1ea2167
commit 8b39edb618

View File

@ -821,7 +821,7 @@ fi
recent_lines=$(tail -n 500 "${DETAIL_LOG}" 2>/dev/null || true) recent_lines=$(tail -n 500 "${DETAIL_LOG}" 2>/dev/null || true)
# Switch to "Building" phase when Maven starts compiling # Switch to "Building" phase when Maven starts compiling
if ! $in_building && echo "$recent_lines" | grep -q -E "Compiling|Building.*Open Bank Project" 2>/dev/null; then if ! $in_building && echo "$recent_lines" | grep -q -E 'Compiling|Building.*Open Bank Project' 2>/dev/null; then
phase="Building" phase="Building"
in_building=true in_building=true
# Record building phase and update terminal (inline to avoid subshell issues) # Record building phase and update terminal (inline to avoid subshell issues)