mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
autogen.sh: leave .git/hooks/pre-{commit,push} alone unless they don't exist, to allow for local ecosystem-dependent customizations of the hooks.
This commit is contained in:
@ -8,8 +8,12 @@ if test -d .git; then
|
|||||||
if ! test -d .git/hooks; then
|
if ! test -d .git/hooks; then
|
||||||
mkdir .git/hooks
|
mkdir .git/hooks
|
||||||
fi
|
fi
|
||||||
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
|
if [ ! -e .git/hooks/pre-commit ]; then
|
||||||
ln -s -f ../../pre-push.sh .git/hooks/pre-push
|
ln -s ../../pre-commit.sh .git/hooks/pre-commit
|
||||||
|
fi
|
||||||
|
if [ ! -e .git/hooks/pre-push ]; then
|
||||||
|
ln -s ../../pre-push.sh .git/hooks/pre-push
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# touch options.h (make sure it exists)
|
# touch options.h (make sure it exists)
|
||||||
|
Reference in New Issue
Block a user