Skip to content

Commit

Permalink
Merge pull request #5 from protocol/fix-line-counting
Browse files Browse the repository at this point in the history
fix counting of directories
  • Loading branch information
marten-seemann authored Jul 27, 2021
2 parents 17785d5 + eee65aa commit a932405
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 @@ -17,7 +17,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 a932405

Please sign in to comment.