fix(ci): invoke .ci/checks.sh through bash in the pre-commit hook (T39b)

pre-commit's `language: script` execs the entry directly, without a shell.
Running the script through `bash` removes the dependency on the file mode
entirely, so the hook keeps working in checkouts made with core.fileMode
=false, from a tarball, or on a filesystem that does not preserve the
executable bit.

The previous commit (ca450f1) sets the mode to 100755 as well; both are
kept because they fail independently.

Not pushed.
This commit is contained in:
oqyude committed 2026-10-23 12:56:10 +03:00
1 parent ca450f1332
commit db3cbd023a
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ repos:
Runs .ci/checks.sh: sops path_regex compliance, no Runs .ci/checks.sh: sops path_regex compliance, no
`:latest` in container images (with R1.5/R1.8 whitelist), `:latest` in container images (with R1.5/R1.8 whitelist),
and `nix flake check` (skippable via --no-build). and `nix flake check` (skippable via --no-build).
entry: .ci/checks.sh --no-build entry: bash .ci/checks.sh --no-build
language: script language: script
pass_filenames: false pass_filenames: false
always_run: true always_run: true