From d1a84c9f3d387bfeaeaa0007dda8d90164633255 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 1 Sep 2011 22:04:48 +0100 Subject: scripts: Show sensible warning messages if expected binaries don't exist [YOCTO #1438] (From OE-Core rev: 6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647) Signed-off-by: Richard Purdie --- scripts/oe-find-native-sysroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/oe-find-native-sysroot') diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot index b99014b52e..b2c22aaf40 100755 --- a/scripts/oe-find-native-sysroot +++ b/scripts/oe-find-native-sysroot @@ -31,7 +31,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. if [ -z "$OECORE_NATIVE_SYSROOT" ]; then - BITBAKE=`which bitbake` + BITBAKE=`which bitbake 2> /dev/null` if [ "x$BITBAKE" != "x" ]; then if [ "$UID" = "0" ]; then # Root cannot run bitbake unless sanity checking is disabled -- cgit v1.2.3-54-g00ecf