diff --git a/docs/README.md b/docs/README.md index d01d7d9c8..e76c7f3d6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -271,8 +271,8 @@ You can create a custom JS script and conditionally require husky and install ho ```js // prepare.js -const someConditions = process.env.CI !== undefined -if (someConditions) { +const isCi = process.env.CI !== undefined +if (!isCi) { require('husky').install() } ```