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 e7ada20 commit 797dfdfCopy full SHA for 797dfdf
1 file changed
husky.sh
@@ -1,5 +1,6 @@
1
#!/usr/bin/env sh
2
-[ "$HUSKY" = "2" ] && set -x
+H="$HUSKY"
3
+[ "$H" = "2" ] && set -x
4
h="${0##*/}"
5
s="${0%/*/*}/$h"
6
@@ -10,7 +11,7 @@ for f in "${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" "$HOME/.huskyrc.sh";
10
11
[ -f "$f" ] && . "$f"
12
done
13
-[ "$HUSKY" = "0" ] && exit 0
14
+[ "$H" = "0" ] && exit 0
15
16
sh -e "$s" "$@"
17
c=$?
0 commit comments