[Toaster] [TOASTER] [PATCH 3/4] toaster: check for configuration file and exit if not found
brian avery
avery.brian at gmail.com
Fri Oct 2 10:30:22 PDT 2015
[YOCTO #8217]
Signed-off-by: brian avery <avery.brian at gmail.com>
---
bitbake/bin/toaster | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index ff3123c..bfedfd3 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -174,7 +174,11 @@ fi
# toasterconf.json
if [ "$TOASTER_CONF" == "" ]; then
BIN_DIR=$(dirname "${BASH_SOURCE[0]}")
- export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
+ export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
+fi
+if [ ! -f $TOASTER_CONF ]; then
+ echo "$TOASTER_CONF configuration file not found, exiting..."
+ exit -1
fi
# this defines the dir toaster will use for
# 1) clones of layers (in _toaster_clones )
--
1.9.1
More information about the toaster
mailing list