Skip to content

Commit

Permalink
fix counting of directories
Browse files Browse the repository at this point in the history
find returns one directory per line, not an array.
  • Loading branch information
marten-seemann committed Jul 27, 2021
1 parent 7254415 commit eee65aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
run: |
status=0
dirs=$(find . \( -name vendor -o -name '[._].*' -o -name node_modules \) -prune -o -name go.mod -print | sed 's:/go.mod$::')
len=${#dirs[@]}
len=$(echo "$dirs" | wc -l | tr -d ' ')
for dir in $dirs; do
pushd $dir > /dev/null
if [[ $len > 1 ]]; then echo "::group::$dir"; fi
Expand Down

0 comments on commit eee65aa

Please sign in to comment.