Skip to content

Commit

Permalink
Fix pre-commit hook in WebStorm (typicode#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyh authored and nikoladavitkovski committed Sep 5, 2022
1 parent 42fe4b7 commit d57a008
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion husky.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh
if [ -z "$husky_skip_init" ]; then
debug () {
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename "$0")"
Expand Down

0 comments on commit d57a008

Please sign in to comment.