This commit is contained in:
Alexander Tokmakov 2023-03-29 17:00:34 +02:00
parent 8b8159d58f
commit 482a9690fc

View File

@ -39,7 +39,6 @@ else
if [ "$set_git_hook" = "y" ]; then
hook_command="$(pwd)/pull-clickhouse-docs-hook.sh $UPDATE_PERIOD_HOURS"
hook_file=$(realpath "$(pwd)/../.git/hooks/post-checkout")
already_have=$(grep -Faq "pull-clickhouse-docs-hook.sh" "$hook_file" 2>/dev/null && echo 1 || echo 0)
if grep -Faq "pull-clickhouse-docs-hook.sh" "$hook_file" 2>/dev/null; then
echo "Looks like the update hook already exists, will not add another one"
else