We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a7485 commit d904d70Copy full SHA for d904d70
1 file changed
.githooks/install
@@ -3,5 +3,9 @@
3
cd $(git rev-parse --git-dir)
4
5
echo "Installing hooks..."
6
-ln -s ../.githooks hooks
7
-echo "Done!"
+ln -sT ../.githooks hooks
+if [ $? -eq 0 ]; then
8
+ echo "Done!"
9
+else
10
+ echo "Hooks failed to install: .git/hooks already exists or cannot be created"
11
+fi
0 commit comments