Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


./bin/g stop after the first repository for which the grep condition
was not verified. this is usually not the desired behavior

diff --git a/bin/g b/bin/g
index 4c3de66..858cc69 100755
--- a/bin/g
+++ b/bin/g
@@ -167,6 +167,11 @@ for DIR in * ; do
                     # git status returns error in some versions, clear that
                     RETURN=0
                     ;;
+                grep)
+                    # git grep return an 'error' if nothing is found
+                   # still we should continue grepping the other repos
+                    RETURN=0
+                    ;;
             esac

             exit $RETURN

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.