Skip to content

Commit 8d64f8a

Browse files
fix: correct the github components count command
1 parent fa87cbd commit 8d64f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/count_components.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
run: |
1919
#!/bin/bash
2020
# Count folders in the repository
21-
folders=$(find . -mindepth 2 -maxdepth 2 -type d -name '[A-Z]*' ! -path '*/.*' -exec sh -c '[[ $(basename "$(dirname "{}")") == [A-Z]* ]]' \; -print | wc -l)
21+
folders=$(find . -mindepth 2 -maxdepth 2 -type d -name '[A-Z]*' ! -path '*/.*' -exec sh -c 'dirname="{}"; parent_dir=$(basename "$dirname"); [[ "$parent_dir" == [A-Z]* ]]' \; -print | wc -l)
2222
echo "Number of folders: $folders"

0 commit comments

Comments
 (0)