Skip to content

Commit

Permalink
Ignore plugins directory
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Oct 9, 2023
1 parent 58fdaed commit 67efe49
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ steps:

- label: ":bash: shfmt"
key: fmt
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 .
command: .buildkite/steps/shfmt.sh
agents:
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"

Expand Down
7 changes: 7 additions & 0 deletions .buildkite/scripts/shfmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -Eeuo pipefail

# Wrapper script for shfmt

exec docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/mnt" -w /mnt mvdan/shfmt:v3-alpine "$@"
7 changes: 7 additions & 0 deletions .buildkite/steps/shfmt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -Eeuo pipefail

SHFMT=".buildkite/scripts/shfmt"

"$SHFMT" --find . | grep -v '^plugins' | xargs "$SHFMT" --diff --binary-next-line --indent 2

0 comments on commit 67efe49

Please sign in to comment.