color !
This commit is contained in:
1 parent
ace5d23d8c
commit
c09e530f3b
1 file changed
+7
@@ -1,4 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/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
|
git diff --staged | grep -v ^- | grep "console.log" 2> /dev/null 1> /dev/null
|
||||||
if [ $? = 0 ]
|
if [ $? = 0 ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in new issue
Block a user