summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/toaster9
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index f1aee627e2..bc439e6d3a 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -162,7 +162,7 @@ RUNNING=0
162NOTOASTERUI=0 162NOTOASTERUI=0
163WEBSERVER=1 163WEBSERVER=1
164TOASTER_BRBE="" 164TOASTER_BRBE=""
165if [ "$WEB_PORT" == "" ]; then 165if [ "$WEB_PORT" = "" ]; then
166 WEB_PORT="8000" 166 WEB_PORT="8000"
167fi 167fi
168# this is the configuraton file we are using for toaster 168# this is the configuraton file we are using for toaster
@@ -172,13 +172,13 @@ fi
172# note: for future there are a number of relative path assumptions 172# note: for future there are a number of relative path assumptions
173# in the local layers that currently prevent using an arbitrary 173# in the local layers that currently prevent using an arbitrary
174# toasterconf.json 174# toasterconf.json
175if [ "$TOASTER_CONF" == "" ]; then 175if [ "$TOASTER_CONF" = "" ]; then
176 BIN_DIR=$(dirname "${BASH_SOURCE[0]}") 176 BIN_DIR=$(dirname -- "$0")
177 export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json" 177 export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
178fi 178fi
179if [ ! -f $TOASTER_CONF ]; then 179if [ ! -f $TOASTER_CONF ]; then
180 echo "$TOASTER_CONF configuration file not found, exiting..." 180 echo "$TOASTER_CONF configuration file not found, exiting..."
181 exit -1 181 exit 1;
182fi 182fi
183# this defines the dir toaster will use for 183# this defines the dir toaster will use for
184# 1) clones of layers (in _toaster_clones ) 184# 1) clones of layers (in _toaster_clones )
@@ -375,4 +375,3 @@ case $CMD in
375 echo "Successful ${CMD}." 375 echo "Successful ${CMD}."
376 ;; 376 ;;
377esac 377esac
378