summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorChristian Dywan <christian.dywan@lanedo.com>2011-05-18 16:37:05 +0200
committerChristian Dywan <christian.dywan@lanedo.com>2011-05-18 16:39:22 +0200
commit0ffc0016e13187b556aff2039acaf1b3cc08a68e (patch)
tree1b1a011b1670ca69cea63afbfd8ba61b90cb3d6e /g
parent8e9913764486a95a1b3940af404bdd9edc787cff (diff)
Don't print === decoration when running g grep
Otherwise g grep -l can't be used, for example with sed.
Diffstat (limited to 'g')
-rwxr-xr-xg2
1 files changed, 1 insertions, 1 deletions
diff --git a/g b/g
index 410d86d4c522..bf9275462c7f 100755
--- a/g
+++ b/g
@@ -237,7 +237,7 @@ for REPO in $DIRS ; do
# do it!
if [ "$COMMAND" != "clone" -o ! -d $DIR ] ; then
- if [ "$REPORT_REPOS" = "1" ] ; then
+ if [ "$REPORT_REPOS" = "1" -a "$COMMAND" != "grep" ] ; then
if [ "$REPORT_COMPACT" = "1" ] ; then
echo -n "${REPO}:"
else