Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/sh
  2. # husky
  3. # v1.1.3 darwin
  4.  
  5. scriptPath="node_modules/husky/run.js"
  6. hookName=`basename "$0"`
  7. gitParams="$*"
  8.  
  9. if [ "${HUSKY_DEBUG}" = "true" ]; then
  10. echo "husky:debug $hookName hook started..."
  11. fi
  12.  
  13. if ! command -v node >/dev/null 2>&1; then
  14. echo "Can't find node in PATH, trying to find a node binary on your system"
  15. fi
  16.  
  17. if [ -f $scriptPath ]; then
  18. node_modules/run-node/run-node $scriptPath $hookName "$gitParams"
  19. else
  20. echo "Can't find Husky, skipping $hookName hook"
  21. echo "You can reinstall it using 'npm install husky --save-dev' or delete this hook"
  22. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement