File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
- label : " :bash: shfmt"
11
11
key : fmt
12
- command : docker run --rm -u "$$(id -u):$$(id -g)" -v "$$PWD:/mnt" -w /mnt mvdan/ shfmt:v3-alpine --diff --binary-next-line --indent 2 --list .
12
+ command : .buildkite/steps/ shfmt.sh
13
13
agents :
14
14
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE}"
15
15
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -Eeuo pipefail
4
+
5
+ # Wrapper script for shfmt
6
+
7
+ exec docker run --rm -u " $( id -u) :$( id -g) " -v " $PWD :/mnt" -w /mnt mvdan/shfmt:v3-alpine " $@ "
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -Eeuo pipefail
4
+
5
+ SHFMT=" .buildkite/scripts/shfmt"
6
+
7
+ # ignore plugins - it contains submodules
8
+ " $SHFMT " --find . \
9
+ | grep -v ' ^plugins/' \
10
+ | xargs " $SHFMT " --diff --binary-next-line --indent 2
You can’t perform that action at this time.
0 commit comments