File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ jobs:
4545 echo "--- End Output ---"
4646
4747 # Check that output contains "--- Agent: root ---"
48- if ! grep -qF "--- Agent: root ---" "$OUTPUT_FILE"; then
48+ if ! grep -qF -- "--- Agent: root ---" "$OUTPUT_FILE"; then
4949 echo "❌ Output does not contain '--- Agent: root ---'"
5050 exit 1
5151 fi
5252 echo "✅ Found '--- Agent: root ---' in output"
5353
5454 # Check that there is text after "--- Agent: root ---"
5555 # Extract everything after "--- Agent: root ---" and check if it has non-empty content
56- AFTER_AGENT=$(sed -n '/--- Agent: root ---/,$p' "$OUTPUT_FILE" | tail -n +2 | grep -v '^$' | grep -v 'Cleaning up' | head -n 5)
56+ AFTER_AGENT=$(sed -n '/--- Agent: root ---/,$p' "$OUTPUT_FILE" | tail -n +2 | grep -v '^$' | grep -vF 'Cleaning up' | head -n 5)
5757
5858 if [ -z "$AFTER_AGENT" ]; then
5959 echo "❌ No output found after '--- Agent: root ---'"
You can’t perform that action at this time.
0 commit comments