diff --git a/bin/postinstall.sh b/bin/postinstall.sh new file mode 100755 index 0000000000..72db42e15a --- /dev/null +++ b/bin/postinstall.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ -d ".git/hooks" ]; then + if [ ! -f ".git/hooks/commit-msg" ]; then + echo "Installing pre-commit hook" + cd .git/hooks/ && cp ../../node_modules/angular-precommit/index.js commit-msg && cd ../../ + fi +fi \ No newline at end of file