diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cc936115e37..5d4daa09fa7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -67,7 +67,7 @@ jobs: # Other pre-commit checks set +e - pre-commit run --color=always --all-files + pre-commit run --color=always --all-files --show-diff-on-failure ((rc+=$?)) set -e diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af02504b404..08949c0517b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: stages: [commit-msg] - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.4.3-1 + rev: v3.5.1-1 hooks: - id: shfmt-docker types: [text] diff --git a/completions/tar b/completions/tar index 1c5fe851cec..ede594590d0 100644 --- a/completions/tar +++ b/completions/tar @@ -383,8 +383,7 @@ __tar_adjust_PREV_from_old_option() # deal with old style arguments here # $ tar cfTC # expects this sequence of arguments: # $ tar cfTC ARCHIVE_FILE PATTERNS_FILE CHANGE_DIR - if ((old_opt_used == 1 && cword > 1 && \ - cword < ${#old_opt_parsed[@]} + 2)); then + if ((old_opt_used == 1 && cword > 1 && cword < ${#old_opt_parsed[@]} + 2)); then # make e.g. 'C' option from 'cffCT' prev="-${old_opt_parsed[cword - 2]}" fi