Skip to content

Commit 6b82f37

Browse files
authored
Fix pre-commit hook in WebStorm (#1023)
1 parent 70d6c71 commit 6b82f37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

husky.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
22
if [ -z "$husky_skip_init" ]; then
33
debug () {
4-
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
4+
if [ "$HUSKY_DEBUG" = "1" ]; then
5+
echo "husky (debug) - $1"
6+
fi
57
}
68

79
readonly hook_name="$(basename "$0")"

0 commit comments

Comments
 (0)