[oe-commits] Matthieu Crapet : scripts/runqemu: avoid pipe with sed
git at git.openembedded.org
git at git.openembedded.org
Thu May 8 12:08:24 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: 173769374b1b37244d64767144398337001f1c6f
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=173769374b1b37244d64767144398337001f1c6f
Author: Matthieu Crapet <Matthieu.Crapet at ingenico.com>
Date: Tue May 6 14:17:53 2014 +0200
scripts/runqemu: avoid pipe with sed
Replace:
cat <file> | sed -e xxx
By:
sed -e xxx <file>
Signed-off-by: Matthieu Crapet <Matthieu.Crapet at ingenico.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
scripts/runqemu | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/runqemu b/scripts/runqemu
index e270274..ff64a1d 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -355,10 +355,10 @@ setup_path_vars() {
MACHINE=$MACHINE bitbake -e > $BITBAKE_ENV_TMPFILE
if [ -z "$OE_TMPDIR" ] ; then
- OE_TMPDIR=`cat $BITBAKE_ENV_TMPFILE | sed -n 's/^TMPDIR=\"\(.*\)\"/\1/p'`
+ OE_TMPDIR=`sed -n 's/^TMPDIR=\"\(.*\)\"/\1/p' $BITBAKE_ENV_TMPFILE`
fi
if [ -z "$DEPLOY_DIR_IMAGE" ] ; then
- DEPLOY_DIR_IMAGE=`cat $BITBAKE_ENV_TMPFILE | sed -n 's/^DEPLOY_DIR_IMAGE=\"\(.*\)\"/\1/p'`
+ DEPLOY_DIR_IMAGE=`sed -n 's/^DEPLOY_DIR_IMAGE=\"\(.*\)\"/\1/p' $BITBAKE_ENV_TMPFILE`
fi
if [ -z "$OE_TMPDIR" ]; then
# Check for errors from bitbake that the user needs to know about
More information about the Openembedded-commits
mailing list