This commit is contained in:
Marc BARBIER
2021-06-28 17:22:04 +02:00
parent ace5d23d8c
commit c09e530f3b
+7
View File
@@ -1,4 +1,11 @@
#!/bin/bash
BOLD=`tput bold`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
GREENBOLD=$BOLD$GREEN
REDBOLD=$BOLD$RED
git diff --staged | grep -v ^- | grep "console.log" 2> /dev/null 1> /dev/null
if [ $? = 0 ]
then