mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-09-16 21:26:27 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
513f424cc7 | ||
![]() |
fbd26dc426 |
@@ -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"
|
||||||
|
Reference in New Issue
Block a user