We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa87cbd commit 8d64f8aCopy full SHA for 8d64f8a
.github/workflows/count_components.yml
@@ -18,5 +18,5 @@ jobs:
18
run: |
19
#!/bin/bash
20
# 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)
+ 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)
22
echo "Number of folders: $folders"
0 commit comments