diff options
Diffstat (limited to 'poky-init-build-env')
-rwxr-xr-x | poky-init-build-env | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poky-init-build-env b/poky-init-build-env index 94bf3f0f7f..0f5e684a52 100755 --- a/poky-init-build-env +++ b/poky-init-build-env | |||
@@ -21,7 +21,9 @@ | |||
21 | 21 | ||
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 | elif test x"$BASH_SOURCE" = x; then | ||
25 | echo "Error: you are not running a Bash shell, please use Bash or add support for your shell to the init scripts" | ||
24 | else | 26 | else |
25 | . ./scripts/poky-env-internal | 27 | . `dirname $BASH_SOURCE`/scripts/poky-env-internal |
26 | fi | 28 | fi |
27 | 29 | ||