mirror of https://github.com/libp2p/cpp-libp2p.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
430 B
22 lines
430 B
#!/bin/sh
|
|
#
|
|
# Copyright Quadrivium LLC
|
|
# All Rights Reserved
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
GIT=$(which git)
|
|
|
|
if [ -z "${GIT}" ]; then
|
|
echo "Command ``git'' command not found"
|
|
exit 1
|
|
fi
|
|
|
|
cd "$(dirname "$0")/.." || (echo "Run script from file" | exit 1)
|
|
|
|
chmod +x .githooks/*
|
|
|
|
${GIT} config --local core.hooksPath .githooks || (echo "Hooks activation has failed" | exit 1)
|
|
|
|
echo "Hooks activated successfully"
|
|
exit 0
|
|
|