From 616f7769c890008a234b0230b3ad9594661366a4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 21 Sep 2018 23:01:23 +0200 Subject: [PATCH] Add whitespace befor log test to handle comments --- Hooks/logging.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hooks/logging.sh b/Hooks/logging.sh index df51aa5..05f2e8f 100644 --- a/Hooks/logging.sh +++ b/Hooks/logging.sh @@ -10,7 +10,7 @@ hasPhpLogging() { } hasJsLogging() { - RESULT=$(grep "console.log(" "$1") + RESULT=$(grep " console.log(" "$1") if [ ! -z $RESULT ]; then return 1 fi