Skip to contentSkip to conversation

Make sure grep runs without colorized output

PATCH New Tasslehoff Kjappfot 1 participant 1 message Sep 21, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make sure grep runs without colorized output

My .bashrc contained "export GREP_OPTIONS='--color=always'", and that caused the path in my pseudodone file to be prefixed by "^[[m^[[K". Override by calling grep with --color=never.

---
 scripts/bitbake |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/bitbake +1 -1
index 587428c..9330d71 100755
@@ -65,7 +65,7 @@ if [ $buildpseudo = "1" ]; then
     if [ "$ret" != "0" ]; then
         exit 1
     fi
-    PSEUDOBINDIR=`bitbake -e | grep STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2`
+    PSEUDOBINDIR=`bitbake -e | grep --color=never STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2`
     ret=$?
     if [ "$ret" != "0" ]; then
         exit 1
Signature · 1 line
1.7.7.rc0.72.g4b5ea