poky-init-build-env: Update for BASH 4 Bourne Shell semantics

It's no longer valid in bash 4 when invoked with Bourne Shell semantics to
return unless you're inside a sourced script or a function.  Doing so in
this context doesn't actually exit from the setup script.  This should
probably preserve the original intent.

Signed-off-by: Joe MacDonald <joe@deserted.net>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Joe MacDonald 2009-11-10 11:46:31 -05:00 committed by Richard Purdie
parent 117b91a172
commit 988e4ddf3c
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@
if test x"$0" = x"./poky-init-build-env"; then
echo "Error: Run via '. ./poky-init-build-env'"
. ./scripts/poky-env-internal
. ./scripts/poky-env-internal