1
0
Fork 0
mirror of https://github.com/ludeeus/action-shellcheck.git synced 2024-08-16 10:09:53 +02:00
This commit is contained in:
ludeeus 2020-05-30 12:00:24 +02:00
parent 3a4806a465
commit 6eb62923bc
3 changed files with 4 additions and 4 deletions

View file

@ -10,4 +10,4 @@ jobs:
- name: Run Shellcheck
uses: ./
with:
ignore: "ignore"
ignore: ignore

View file

@ -36,7 +36,7 @@ example:
SHELLCHECK_OPTS: -e SC2059 -e SC2034 -e SC1090
```
## Disable paths
## Ignore paths
You can use the `ignore` input to disable specific directories.

View file

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