mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 21:11:53 +00:00
fix(ci): prevent grep exit code 1 from failing empty dir check
- Add || true to grep -v that filters empty lines from VALID_PATHS - GitHub Actions bash uses set -eo pipefail, so grep returning 1 (no matches) killed the script before reaching the graceful exit 0
This commit is contained in:
@@ -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