Skip to content

Commit

Permalink
#85 find instead of LS
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 2, 2023
1 parent 489df64 commit 3a84c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steps/aggregate-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ -e "${ddir}" ]; then
fi

find "${dir}" -name '*.m' | while IFS= read -r m; do
ls "${m}".* | while IFS= read -r v; do
find "$(dirname "${m}")" -name "$(basename "${m}").*" -type f -print | while IFS= read -r v; do
java=$(echo "${v}" | sed "s|${dir}||" | sed "s|\.m\..*$||")
metric=$(echo "${v}" | sed "s|${dir}${java}.m.||")
csv=${ddir}/${metric}.csv
Expand Down

0 comments on commit 3a84c05

Please sign in to comment.