mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-03-21 18:58:04 +00:00
fix(ci): prevent grep exit code 1 from failing empty dir check (#10315)
This commit is contained in:
2
.github/workflows/ui-e2e-tests-v2.yml
vendored
2
.github/workflows/ui-e2e-tests-v2.yml
vendored
@@ -242,7 +242,7 @@ jobs:
|
||||
echo "Skipping empty test directory: $p"
|
||||
fi
|
||||
done <<< "$TEST_PATHS"
|
||||
VALID_PATHS=$(echo "$VALID_PATHS" | grep -v '^$')
|
||||
VALID_PATHS=$(echo "$VALID_PATHS" | grep -v '^$' || true)
|
||||
if [[ -z "$VALID_PATHS" ]]; then
|
||||
echo "No test files found in any resolved paths — skipping E2E"
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user