From 7e5e2a9d4bc099e3e49f4d180407c9e1b6fc977f Mon Sep 17 00:00:00 2001 From: Key Carson Date: Mon, 5 Mar 2018 11:50:52 -0600 Subject: [PATCH] make full hooks path if it doesn't exist --- lib/pre_commit.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pre_commit.ex b/lib/pre_commit.ex index eb104de..5938bf9 100644 --- a/lib/pre_commit.ex +++ b/lib/pre_commit.ex @@ -47,7 +47,7 @@ defmodule PreCommit do to = Mix.Project.deps_path() |> Path.join("../.git/hooks/pre-commit") unless File.exists?(to) do - File.mkdir!(to) + File.mkdir_p!(to) end copy