parent
59bc18b8b9
commit
98db81c6a5
1 changed files with 7 additions and 8 deletions
|
@ -12,11 +12,10 @@ jobs:
|
|||
|
||||
- name: Run shellcheck
|
||||
uses: docker://koalaman/shellcheck-alpine:v0.10.0
|
||||
with:
|
||||
args: |
|
||||
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
|
||||
if echo "$line" | grep -q "shell script"; then
|
||||
file_path=$(echo "$line" | awk -F':' '{print $1}')
|
||||
shellcheck "$file_path"
|
||||
fi
|
||||
done
|
||||
run: |
|
||||
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
|
||||
if echo "$line" | grep -q "shell script"; then
|
||||
file_path=$(echo "$line" | awk -F':' '{print $1}')
|
||||
shellcheck "$file_path"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue