Patchwork [1/3] oe-setup-builddir: Allow $OECORENOTESCONF to not exist

login
register
mail settings
Submitter Peter Kjellerstedt
Date April 5, 2013, 4:59 p.m.
Message ID <78acebef86ede91d5513876f9723fbc5e5849131.1365179842.git.pkj@axis.com>
Download mbox | patch
Permalink /patch/47517/
State Accepted
Commit a468b0d5579148771da716eaf357e5d45fc3211c
Headers show

Comments

Peter Kjellerstedt - April 5, 2013, 4:59 p.m.
Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
---
 scripts/oe-setup-builddir | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index 76e1778..d5d8d98 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -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