summaryrefslogtreecommitdiffstats
path: root/bin/toaster
diff options
context:
space:
mode:
authorbrian avery <avery.brian@gmail.com>2015-10-07 15:17:36 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-11 05:31:03 +0100
commitbe2d04c1831608922f90da03cb26d7fd5c863a47 (patch)
tree732636b1e01b80600a373f1313bea7ef538f5082 /bin/toaster
parentd5811968b5f22093365f381fb7e75ab46e5269c2 (diff)
downloadbitbake-contrib-be2d04c1831608922f90da03cb26d7fd5c863a47.tar.gz
toaster: remove bashisms so script works in dash as well
[YOCTO #8217] Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/toaster')
-rwxr-xr-xbin/toaster9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/toaster b/bin/toaster
index f1aee627e..bc439e6d3 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -162,7 +162,7 @@ RUNNING=0
NOTOASTERUI=0
WEBSERVER=1
TOASTER_BRBE=""
-if [ "$WEB_PORT" == "" ]; then
+if [ "$WEB_PORT" = "" ]; then
WEB_PORT="8000"
fi
# this is the configuraton file we are using for toaster
@@ -172,13 +172,13 @@ fi
# note: for future there are a number of relative path assumptions
# in the local layers that currently prevent using an arbitrary
# toasterconf.json
-if [ "$TOASTER_CONF" == "" ]; then
- BIN_DIR=$(dirname "${BASH_SOURCE[0]}")
+if [ "$TOASTER_CONF" = "" ]; then
+ BIN_DIR=$(dirname -- "$0")
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
+ exit 1;
fi
# this defines the dir toaster will use for
# 1) clones of layers (in _toaster_clones )
@@ -375,4 +375,3 @@ case $CMD in
echo "Successful ${CMD}."
;;
esac
-