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