From 300749d97c8c16dfcaa856579a88dbc35e0f2303 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 31 Dec 2023 11:43:48 +0100 Subject: add shfmt --- tasks/shfmt/task.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tasks/shfmt/task.yml (limited to 'tasks/shfmt/task.yml') diff --git a/tasks/shfmt/task.yml b/tasks/shfmt/task.yml new file mode 100644 index 0000000..7d6332c --- /dev/null +++ b/tasks/shfmt/task.yml @@ -0,0 +1,25 @@ +--- +platform: linux +image_resource: + type: registry-image + source: + repository: alpine + tag: latest + +inputs: + - name: repo + +run: + path: ash + args: + - -eufo + - pipefail + - -c + - | + apk add --no-progress --no-interactive shfmt findutils + shfmt --version + find repo \ + -type f \ + -name '*.sh' \ + -print0 |\ + xargs -r0 shfmt -i 8 -d -- cgit v1.2.3