diff --git a/lib/git_hooks.ex b/lib/git_hooks.ex index f704331..7629de6 100644 --- a/lib/git_hooks.ex +++ b/lib/git_hooks.ex @@ -3,7 +3,9 @@ defmodule GitHooks do alias Mix.Tasks.GitHooks.Install - if Application.get_env(:git_hooks, :auto_install, true) do + @auto_install Application.compile_env(:git_hooks, :auto_install, true) + + if @auto_install do Install.run(["--quiet"]) end