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 11:55:03 +02:00
parent fa3cc6ede4
commit 21696cbf1a
2 changed files with 3 additions and 4 deletions

View file

@ -5,7 +5,8 @@ jobs:
name: Shellcheck name: Shellcheck
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - name: Checkout
uses: actions/checkout@master
- name: Run Shellcheck - name: Run Shellcheck
uses: ./ uses: ./
with: with:

View file

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