mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
18 lines
No EOL
311 B
Bash
Executable file
18 lines
No EOL
311 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -e .git/hooks/pre-commit ];
|
|
then
|
|
PRE_COMMIT_EXISTS=1
|
|
else
|
|
PRE_COMMIT_EXISTS=0
|
|
fi
|
|
|
|
cp ./hooks/pre-commit .git/hooks/pre-commit
|
|
chmod +x .git/hooks/pre-commit
|
|
|
|
if [ "$PRE_COMMIT_EXISTS" = 0 ];
|
|
then
|
|
echo "Pre-commit git hook is installed!"
|
|
else
|
|
echo "Pre-commit git hook is updated!"
|
|
fi |