From patchwork Wed Sep 21 10:04:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Make sure grep runs without colorized output Date: Wed, 21 Sep 2011 10:04:18 -0000 From: Tasslehoff Kjappfot X-Patchwork-Id: 11871 Message-Id: <1316599458-7433-1-git-send-email-tasskjapp@gmail.com> To: openembedded-devel@lists.openembedded.org Cc: Tasslehoff Kjappfot 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(-) diff --git a/scripts/bitbake b/scripts/bitbake index 587428c..9330d71 100755 --- a/scripts/bitbake +++ b/scripts/bitbake @@ -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