[oe-commits] Paul Eggleton : combo-layer: remove &> bashism

git at git.openembedded.org git at git.openembedded.org
Tue Jul 31 07:05:21 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 5582cc58e42402c4680877e669d8c1ce058e7098
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5582cc58e42402c4680877e669d8c1ce058e7098

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Tue Jul 31 01:06:20 2012 +0100

combo-layer: remove &> bashism

&> does not work with dash - use > xxxx 2>&1 instead.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/combo-layer |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/combo-layer b/scripts/combo-layer
index 73d61cc..b1a9dca 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -75,7 +75,7 @@ class Configuration(object):
             sys.exit(1)
 
         # filterdiff is required by action_splitpatch, so check its availability
-        if subprocess.call("which filterdiff &>/dev/null", shell=True) != 0:
+        if subprocess.call("which filterdiff > /dev/null 2>&1", shell=True) != 0:
             logger.error("ERROR: patchutils package is missing, please install it (e.g. # apt-get install patchutils)")
             sys.exit(1)
 





More information about the Openembedded-commits mailing list