scripts/refresh-git-hooks: Create hooks dir before making links.

Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I9ceb7894c0b670bf17cb89e0397b994b5e227ef7
pull/2288/head
Gleb Popov 2021-05-06 16:06:22 +03:00 committed by Miklos Vajna
parent 30f7aa6834
commit 6622053557
1 changed files with 2 additions and 0 deletions

View File

@ -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##*/}"