Skip to content

Commit eee65aa

Browse files
fix counting of directories
find returns one directory per line, not an array.
1 parent 7254415 commit eee65aa

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
@@ -13,7 +13,7 @@ runs:
1313
run: |
1414
status=0
1515
dirs=$(find . \( -name vendor -o -name '[._].*' -o -name node_modules \) -prune -o -name go.mod -print | sed 's:/go.mod$::')
16-
len=${#dirs[@]}
16+
len=$(echo "$dirs" | wc -l | tr -d ' ')
1717
for dir in $dirs; do
1818
pushd $dir > /dev/null
1919
if [[ $len > 1 ]]; then echo "::group::$dir"; fi

0 commit comments

Comments
 (0)