ci: syntax
This commit is contained in:
parent
f6dea7d48a
commit
6d04a8ba01
1 changed files with 4 additions and 3 deletions
|
@ -21,13 +21,14 @@ steps:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
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/' -exec file {} ; | grep "shell script" | awk -F':' '{print $1}' | xargs -n1 shellcheck || echo "hallo"
|
"if find . -type f -not -path '/.git/' -exec file {} ; | grep -q "shell script"; then
|
||||||
|
find . -type f -not -path '/.git/' -exec file {} ; | grep "shell script" | awk -F':' '{print $1}' | xargs -n1 shellcheck
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "No files specified."
|
echo "No files specified."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi"
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
|
|
Loading…
Reference in a new issue