Add whitespace befor log test to handle comments

This commit is contained in:
Dennis Eichhorn 2018-09-21 23:01:23 +02:00
parent bf7ec6a7bd
commit 616f7769c8

View File

@ -10,7 +10,7 @@ hasPhpLogging() {
}
hasJsLogging() {
RESULT=$(grep "console.log(" "$1")
RESULT=$(grep " console.log(" "$1")
if [ ! -z $RESULT ]; then
return 1
fi