oe-setup-builddir: Allow $OECORENOTESCONF to not exist
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 5 Apr 2013 16:59:44 +0000 (18:59 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Apr 2013 22:05:34 +0000 (23:05 +0100)
(From OE-Core rev: 6fc14169ac0c3001e3a69eda8d07fc0ac93a15ee)

Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-setup-builddir

index 76e1778..d5d8d98 100755 (executable)
@@ -118,5 +118,5 @@ EOM
 if [ "x" = "x$OECORENOTESCONF" ]; then
     OECORENOTESCONF="$OEROOT/meta/conf/conf-notes.txt"
 fi
-cat $OECORENOTESCONF
+[ ! -r "$OECORENOTESCONF" ] || cat $OECORENOTESCONF
 unset OECORENOTESCONF