diff options
-rwxr-xr-x | autogen.sh.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autogen.sh.in b/autogen.sh.in index 83644f9..b5cda46 100755 --- a/autogen.sh.in +++ b/autogen.sh.in @@ -28,7 +28,11 @@ fi if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \); then rm -f .git/hooks/pre-commit - ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit + if ! ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit 2> /dev/null + then + echo "Failed to create commit hook symlink, copying instead ..." + cp common/hooks/pre-commit.hook .git/hooks/pre-commit + fi fi # GNU gettext automake support doesn't get along with git. |