From 82eca2f066ea872d8603379bdeee7e8ca1ce318c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl=20Gramain?= <mael@enpls.org>
Date: Mon, 6 Jan 2025 23:19:41 +0100
Subject: [PATCH] c la fatig

---
 .ci/lint_wrap.sh     | 7 +++++++
 .woodpecker/lint.yml | 7 +------
 2 files changed, 8 insertions(+), 6 deletions(-)
 create mode 100755 .ci/lint_wrap.sh

diff --git a/.ci/lint_wrap.sh b/.ci/lint_wrap.sh
new file mode 100755
index 0000000..b75c527
--- /dev/null
+++ b/.ci/lint_wrap.sh
@@ -0,0 +1,7 @@
+set -o pipefail
+sh .ci/lint.sh 2>&1 | tee output_tmp.txt
+echo "\`\`\`" > output.txt
+grep 'msg=' output_tmp.txt | awk -F'msg="' '{print $2}' | sed 's/"$//' | sed 's/\\"/"/g' >> output.txt
+echo $?
+echo "\`\`\`" >> output.txt
+echo "END"
\ No newline at end of file
diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml
index b5dbd57..7089ae1 100644
--- a/.woodpecker/lint.yml
+++ b/.woodpecker/lint.yml
@@ -16,18 +16,13 @@ steps:
         event: [pull_request]
   lint:
     image: debian:stable
-    entrypoint: ["/bin/bash", "-c", "echo $CI_SCRIPT | base64 -d | /bin/bash -e"]
-    failure: ignore
     commands:
       - rm -rf output.txt
       - apt-get update
       - apt-get install -y curl
       - curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
       - chmod +x /usr/local/bin/docker-compose
-      - set -o pipefail
-      - sh .ci/lint.sh 2>&1 | tee output_tmp.txt
-      - echo "\`\`\`" > output.txt
-      - grep 'msg=' output.txt | awk -F'msg="' '{print $2}' | sed 's/"$//' | sed 's/\\"/"/g' && echo "\`\`\`" >> output.txt
+      - bash .ci/lint_wrap.sh
   comment_2:
       image: git.gnous.eu/enpls/gitea-comment-plugin:1.1
       settings: