Skip to content

Commit 8f5f14f

Browse files
committed
Fix grep
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
1 parent dcec780 commit 8f5f14f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 ---'"

0 commit comments

Comments
 (0)