summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-10-15 09:34:15 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-16 14:07:29 +0100
commit4b8cb1098ad73b4e9dc65b5c6de7d11d2e2468c7 (patch)
tree92d734026308a0c3ee18f6c5c33ee7b236b6e70f
parent5368d9af4e2c121938fc2421a536fb7f20a987fd (diff)
downloadbitbake-4b8cb1098ad73b4e9dc65b5c6de7d11d2e2468c7.tar.gz
toaster: get rid of SRCFILE
Used TOASTER variable instead of SRCFILE as they're essentially the same. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbin/toaster4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/toaster b/bin/toaster
index 75d3390d0..d7c5a845e 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -232,9 +232,7 @@ for param in $*; do
esac
done
-[ -n "${BASH_SOURCE}" ] && SRCFILE=${BASH_SOURCE} || SRCFILE=$_
-
-if [ `basename \"$0\"` = `basename \"${SRCFILE}\"` ]; then
+if [ `basename \"$0\"` = `basename \"${TOASTER}\"` ]; then
# We are called as standalone. We refuse to run in a build environment - we need the interactive mode for that.
# Start just the web server, point the web browser to the interface, and start any Django services.