From 662205355712973a918addd4e6e222879d47d840 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Thu, 6 May 2021 16:06:22 +0300 Subject: [PATCH] scripts/refresh-git-hooks: Create hooks dir before making links. Signed-off-by: Gleb Popov <6yearold@gmail.com> Change-Id: I9ceb7894c0b670bf17cb89e0397b994b5e227ef7 --- scripts/refresh-git-hooks | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/refresh-git-hooks b/scripts/refresh-git-hooks index c2f239c146..56e7234e36 100755 --- a/scripts/refresh-git-hooks +++ b/scripts/refresh-git-hooks @@ -11,6 +11,8 @@ if [ ! -d "${srcdir}/.git" ]; then exit 0 fi +mkdir -p ${srcdir}/.git/hooks + for hook_name in ${srcdir}/.git-hooks/* do hook="${srcdir}/.git/hooks/${hook_name##*/}"