2 Commits
0.2.0 ... 0.2.1

Author SHA1 Message Date
Gareth Healy
513f424cc7 Added mvnw to excludes (#15) 2020-06-10 11:56:06 +02:00
ludeeus
fbd26dc426 Exclude go and profile 2020-06-07 16:53:52 +02:00

View File

@@ -10,6 +10,9 @@ declare -a tmp
statuscode=0 statuscode=0
excludes+=( ! -path *./.git/* ) excludes+=( ! -path *./.git/* )
excludes+=( ! -path *.go )
excludes+=( ! -path */mvnw )
for path in ${INPUT_IGNORE}; do for path in ${INPUT_IGNORE}; do
echo "::debug:: Adding '${path}' to excludes" echo "::debug:: Adding '${path}' to excludes"
excludes+=(! -path "*./${path}/*" ) excludes+=(! -path "*./${path}/*" )
@@ -38,7 +41,6 @@ readarray -d '' filepaths < <(find . "${excludes[@]}" \
-o -path '*/zsh*' \ -o -path '*/zsh*' \
-o -name '*.sh' \ -o -name '*.sh' \
-o -path '*/.profile*' \ -o -path '*/.profile*' \
-o -path '*/profile*' \
-o -path '*/.shlib*' \ -o -path '*/.shlib*' \
-o -path '*/shlib*' \ -o -path '*/shlib*' \
')'\ ')'\
@@ -69,4 +71,4 @@ for file in "${filepaths[@]}"; do
shellcheck "$file" || statuscode=$? shellcheck "$file" || statuscode=$?
done done
exit "$statuscode" exit "$statuscode"