Gabriel Fortuna
07/03/2026, 10:31 AMinfisical scan install --pre-commit-hook it doesn’t work right away. The problem is because the hook script has a check of:
git config --bool hooks.infisical-scan
to determine if scanning is active or not, but that config flag is not switched on, or even exists. Indeed, the docs give instructions for how to switch the hook off, using that boolean config. I had to manually run this:
git config --bool hooks.infisical-scan true
to get the flag activated so that the scan pre-commit works.
I’m not sure if this is a doc problem, or a problem with the CLI? Anyway - just letting you know.Pylon
07/09/2026, 9:24 PMGabriel Fortuna
07/14/2026, 6:25 AMif check to fail. Error message is in the screenshot’s first example. An unset flag throws the sh: [: !=: unary operator expected error.
Note: I tried with both bash and sh. Same results.
I am not using Husky or any other git hook mgmt tooling. So it definitely was not that. Just a simple garden-variety shell condition check bug.