color !
This commit is contained in:
@@ -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