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
commitdfdee63ca51fe2241c92b1c457222188eeec74c8 (patch)
tree5fdad93e955bf9d3fd3a5951f4ce724c218e5210 /g
parent990bae90ee785138dfc700b28b42330dcf4f2d9b (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 410d86d4c..bf9275462 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