ci: syntax
This commit is contained in:
parent
6d04a8ba01
commit
aa8eff5ce5
1 changed files with 6 additions and 7 deletions
|
@ -22,13 +22,12 @@ steps:
|
||||||
image: registry.mgrote.net/allzweckcontainer
|
image: registry.mgrote.net/allzweckcontainer
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
"if find . -type f -not -path '/.git/' -exec file {} ; | grep -q "shell script"; then
|
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
|
||||||
find . -type f -not -path '/.git/' -exec file {} ; | grep "shell script" | awk -F':' '{print $1}' | xargs -n1 shellcheck
|
if echo "$line" | grep -q "shell script"; then
|
||||||
exit 1
|
file_path=$(echo "$line" | awk -F':' '{print $1}')
|
||||||
else
|
shellcheck "$file_path"
|
||||||
echo "No files specified."
|
fi
|
||||||
exit 0
|
done
|
||||||
fi"
|
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
|
|
Loading…
Reference in a new issue