From d57a008807c1a2594a1fe0ecfc958a42e998c8e0 Mon Sep 17 00:00:00 2001 From: Andrey Ivlev Date: Wed, 25 Aug 2021 04:22:10 +0300 Subject: [PATCH] Fix pre-commit hook in WebStorm (#1023) --- husky.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/husky.sh b/husky.sh index 5f7c17c20..6809ccca2 100644 --- a/husky.sh +++ b/husky.sh @@ -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")"