ci: syntax

This commit is contained in:
Michael Grote 2024-01-29 11:59:48 +01:00
parent 4f3993539d
commit c01e2aa9f4

View file

@ -20,8 +20,7 @@ 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 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" find . -type f -not -path '/.git/' -exec file {} ; | grep "shell script" | awk -F':' '{print $1}' | xargs -n1 shellcheck || echo "hallo"
exit 1 exit 1