From 6d04a8ba01af3f3b6c14ac7d12e5caabce4875b4 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 29 Jan 2024 12:02:01 +0100 Subject: [PATCH] ci: syntax --- .woodpecker/lint.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index f627a7a..47e2226 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -21,13 +21,14 @@ steps: shellcheck: image: registry.mgrote.net/allzweckcontainer 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 else echo "No files specified." exit 0 - fi + fi" when: event: exclude: