diff --git a/action.yml b/action.yml index 8d442fb..1941c1b 100644 --- a/action.yml +++ b/action.yml @@ -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