Skip to content

Commit

Permalink
Merge pull request #396 from dzhovi/master
Browse files Browse the repository at this point in the history
fixed regex
  • Loading branch information
yegor256 authored Nov 23, 2024
2 parents d6ce588 + fcae469 commit e388ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions steps/jpeek-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if ! collect; then
exit
fi

accept=".*[^index|matrix|skeleton].xml"
accept="^(?!.*(index|matrix|skeleton)).*\.xml$"

values=${TARGET}/temp/jpeek-values/${repo}.txt
mkdir -p "$(dirname "${values}")"
Expand All @@ -114,7 +114,7 @@ for type in all cvc; do
continue
fi
find "${dir}" -type f -maxdepth 1 -print | while IFS= read -r report; do
if echo "${report}" | grep -q "${accept}"; then
if echo "${report}" | grep -qP "${accept}"; then
packages=$(xmlstarlet sel -t -v 'count(/metric/app/package/@id)' "${report}")
name=$(xmlstarlet sel -t -v "/metric/title" "${report}")
for ((i=1; i <= packages; i++)); do
Expand Down

0 comments on commit e388ba8

Please sign in to comment.