From: brian avery Date: Wed, 7 Oct 2015 12:17:34 +0000 (+0300) Subject: toaster: check for configuration file and exit if not found X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49e30c1aa8d717adbdcc15c90a668000789a6961;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: check for configuration file and exit if not found [YOCTO #8217] Signed-off-by: brian avery Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- diff --git a/bin/toaster b/bin/toaster index ff3123cd4ad..bfedfd3ea3b 100755 --- a/bin/toaster +++ b/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 )