/[sudobot]/trunk/.husky/_/h
ViewVC logotype

Annotation of /trunk/.husky/_/h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 632 - (hide annotations)
Thu Oct 10 17:53:11 2024 UTC (5 months, 2 weeks ago) by rakinar2
File size: 551 byte(s)
chore: synchronize

1 rakinar2 632 #!/usr/bin/env sh
2     [ "$HUSKY" = "2" ] && set -x
3     n=$(basename "$0")
4     s=$(dirname "$(dirname "$0")")/$n
5    
6     [ ! -f "$s" ] && exit 0
7    
8     if [ -f "$HOME/.huskyrc" ]; then
9     echo "husky - '~/.huskyrc' is DEPRECATED, please move your code to ~/.config/husky/init.sh"
10     fi
11     i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"
12     [ -f "$i" ] && . "$i"
13    
14     [ "${HUSKY-}" = "0" ] && exit 0
15    
16     export PATH="node_modules/.bin:$PATH"
17     sh -e "$s" "$@"
18     c=$?
19    
20     [ $c != 0 ] && echo "husky - $n script failed (code $c)"
21     [ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
22     exit $c

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26