X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=autogen.sh;h=3d04d84afe55b1e246fbae27842e8e4b5c36e5e6;hp=5bd10be1f482c9944a6e76db5a4cd1162d997603;hb=f60b861e3e526d33aa504f90385727ff74f290ba;hpb=25c93758d6b1136d268fe3fcc1c4979c17463c0b diff --git a/autogen.sh b/autogen.sh index 5bd10be..3d04d84 100644 --- a/autogen.sh +++ b/autogen.sh @@ -4,7 +4,9 @@ # install Lustre Git commit hooks by default - LU-2083 for HOOK in commit-msg prepare-commit-msg; do - [ -e .git/hooks/$HOOK ] || ln -sf ../../build/$HOOK .git/hooks/ + if [ -d .git/hooks -a ! -e .git/hooks/$HOOK ]; then + ln -sf ../../build/$HOOK .git/hooks/ + fi done echo "Checking for a complete tree..."