We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9475197 commit 34c6ecbCopy full SHA for 34c6ecb
.github/workflows/bench-test.yaml
@@ -58,13 +58,12 @@ jobs:
58
shell: bash
59
run: |
60
echo "for_loop_count=0" >> $GITHUB_ENV
61
- echo "for_loop_count_in_file=0" >> $GITHUB_ENV
62
63
find . -type f -name '*.rs' | while read -r file; do
64
echo "Checking $file"
65
- $for_loop_count_in_file=$(grep -oE 'for\s+(\([^)]+\)|\w+)\s+in\s+[^{]+' "$file" | wc -l)
+ for_loop_count_in_file=((grep -oE 'for\s+(\([^)]+\)|\w+)\s+in\s+[^{]+' "$file" | wc -l))
66
echo "Count in file: $for_loop_count_in_file"
67
- ((for_loop_count += $for_loop_count_in_file))
+ ((for_loop_count += for_loop_count_in_file))
68
done
69
echo "for loop occurrences: $for_loop_count"
70
0 commit comments