diff options
| author | Joe MacDonald <joe@deserted.net> | 2009-11-10 11:46:31 -0500 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-12 16:49:45 +0000 |
| commit | 988e4ddf3cb129bc531b9234e2ab13c7f4c315ac (patch) | |
| tree | 5e756d1f8bdb3fa2d3115c1fbc1012a51cef048b | |
| parent | 117b91a1720076fd694fe3505b2eb6ff848851fb (diff) | |
| download | poky-988e4ddf3cb129bc531b9234e2ab13c7f4c315ac.tar.gz | |
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>
| -rwxr-xr-x | poky-init-build-env | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poky-init-build-env b/poky-init-build-env index 2fce740790..9adff14f86 100755 --- a/poky-init-build-env +++ b/poky-init-build-env | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | if test x"$0" = x"./poky-init-build-env"; then | 22 | if test x"$0" = x"./poky-init-build-env"; then |
| 23 | echo "Error: Run via '. ./poky-init-build-env'" | 23 | echo "Error: Run via '. ./poky-init-build-env'" |
| 24 | return | 24 | return |
| 25 | else | ||
| 26 | . ./scripts/poky-env-internal | ||
| 25 | fi | 27 | fi |
| 26 | 28 | ||
| 27 | . ./scripts/poky-env-internal | ||
