Skip to content

Commit 497345f

Browse files
committed
ci(pre-commit): Run shfmt, shellcheck on fixtures
1 parent e8dc253 commit 497345f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
hooks:
1414
- id: shfmt
1515
types: [text]
16-
files: ^(bash_completion(\.d/[^/]+\.bash)?|completions/.+|test/(config/bashrc|fallback/update-fallback-links|runLint|update-test-cmd-list)|.+\.sh(\.in)?)$
16+
files: ^(bash_completion(\.d/[^/]+\.bash)?|completions/.+|test/(config/bashrc|fixtures/.+/bin/.+|fallback/update-fallback-links|runLint|update-test-cmd-list)|.+\.sh(\.in)?)$
1717
exclude: ^completions/(\.gitignore|Makefile.*)$
1818

1919
- repo: https://github.com/shellcheck-py/shellcheck-py
@@ -22,7 +22,7 @@ repos:
2222
- id: shellcheck
2323
args: [-f, gcc]
2424
types: [text]
25-
files: ^(bash_completion(\.d/[^/]+\.bash)?|completions/.+|test/(config/bashrc|fallback/update-fallback-links|runLint|update-test-cmd-list)|.+\.sh(\.in)?)$
25+
files: ^(bash_completion(\.d/[^/]+\.bash)?|completions/.+|test/(config/bashrc|fixtures/.+/bin/.+|fallback/update-fallback-links|runLint|update-test-cmd-list)|.+\.sh(\.in)?)$
2626
exclude: ^completions/(\.gitignore|Makefile.*)$
2727
require_serial: false # We disable SC1090 anyway, so parallel is ok
2828

test/fixtures/mount/bin/showmount

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

3-
if [ "$1" = -e ] && [ "$2" = mocksrv ]; then
3+
if [[ $1 == -e && $2 == "mocksrv" ]]; then
44
echo "Header line"
55
echo "/test/path"
66
echo "/test/path2"

0 commit comments

Comments
 (0)