1
0
Fork 0
mirror of https://github.com/ludeeus/action-shellcheck.git synced 2024-08-16 10:09:53 +02:00

take both

This commit is contained in:
ludeeus 2020-05-30 12:01:39 +02:00
parent 6eb62923bc
commit acc4e4fe97

View file

@ -11,8 +11,9 @@ statuscode=0
excludes+=( ! -path *./.git/* )
for path in ${INPUT_IGNORE}; do
echo "::debug:: Adding '*./${path}/*' to excludes"
echo "::debug:: Adding '${path}' to excludes"
excludes+=(! -path "*./${path}/*" )
excludes+=(! -path "*/${path}/*" )
done
readarray -d '' filepaths < <(find . "${excludes[@]}" \