Skip to content

Commit a932405

Browse files
Merge pull request #5 from protocol/fix-line-counting
fix counting of directories
2 parents 17785d5 + eee65aa commit a932405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
run: |
1818
status=0
1919
dirs=$(find . \( -name vendor -o -name '[._].*' -o -name node_modules \) -prune -o -name go.mod -print | sed 's:/go.mod$::')
20-
len=${#dirs[@]}
20+
len=$(echo "$dirs" | wc -l | tr -d ' ')
2121
for dir in $dirs; do
2222
pushd $dir > /dev/null
2323
if [[ $len > 1 ]]; then echo "::group::$dir"; fi

0 commit comments

Comments
 (0)