Skip to content

Commit 03e60a2

Browse files
authored
Merge pull request #752 from scop/renovate/scop-pre-commit-shfmt-3.x
chore(pre-commit): update scop/pre-commit-shfmt to v3.5.1-1
2 parents 29fc917 + 055a7c0 commit 03e60a2

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# Other pre-commit checks
6868
6969
set +e
70-
pre-commit run --color=always --all-files
70+
pre-commit run --color=always --all-files --show-diff-on-failure
7171
((rc+=$?))
7272
set -e
7373

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
stages: [commit-msg]
1010

1111
- repo: https://github.com/scop/pre-commit-shfmt
12-
rev: v3.4.3-1
12+
rev: v3.5.1-1
1313
hooks:
1414
- id: shfmt-docker
1515
types: [text]

completions/tar

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ __tar_adjust_PREV_from_old_option()
383383
# deal with old style arguments here
384384
# $ tar cfTC # expects this sequence of arguments:
385385
# $ tar cfTC ARCHIVE_FILE PATTERNS_FILE CHANGE_DIR
386-
if ((old_opt_used == 1 && cword > 1 && \
387-
cword < ${#old_opt_parsed[@]} + 2)); then
386+
if ((old_opt_used == 1 && cword > 1 && cword < ${#old_opt_parsed[@]} + 2)); then
388387
# make e.g. 'C' option from 'cffCT'
389388
prev="-${old_opt_parsed[cword - 2]}"
390389
fi

0 commit comments

Comments
 (0)