Explorar el Código

feat(hooks): improve symlinks script

bergquist hace 10 años
padre
commit
dfd4fbc566
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      symlink_git_hooks.sh

+ 3 - 1
symlink_git_hooks.sh

@@ -1,3 +1,5 @@
 #/bin/bash
 #/bin/bash
 
 
-ln -s -f .hooks/* .git/hooks/
+#ln -s -f .hooks/* .git/hooks/
+cd .git/hooks/
+cp --symbolic-link -f ../../.hooks/* .