Skip to content

Commit 34c6ecb

Browse files
committed
last attempt
1 parent 9475197 commit 34c6ecb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/bench-test.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,12 @@ jobs:
5858
shell: bash
5959
run: |
6060
echo "for_loop_count=0" >> $GITHUB_ENV
61-
echo "for_loop_count_in_file=0" >> $GITHUB_ENV
6261
6362
find . -type f -name '*.rs' | while read -r file; do
6463
echo "Checking $file"
65-
$for_loop_count_in_file=$(grep -oE 'for\s+(\([^)]+\)|\w+)\s+in\s+[^{]+' "$file" | wc -l)
64+
for_loop_count_in_file=((grep -oE 'for\s+(\([^)]+\)|\w+)\s+in\s+[^{]+' "$file" | wc -l))
6665
echo "Count in file: $for_loop_count_in_file"
67-
((for_loop_count += $for_loop_count_in_file))
66+
((for_loop_count += for_loop_count_in_file))
6867
done
6968
echo "for loop occurrences: $for_loop_count"
7069

0 commit comments

Comments
 (0)