[oe-commits] Peter Kjellerstedt : oe-init-build-env: Make it use the correct $OEROOT with zsh
git at git.openembedded.org
git at git.openembedded.org
Fri Apr 5 22:03:00 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: f0aa69296f4c1d4214f9dbea236b0ed330b8154b
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f0aa69296f4c1d4214f9dbea236b0ed330b8154b
Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
Date: Fri Apr 5 18:59:46 2013 +0200
oe-init-build-env: Make it use the correct $OEROOT with zsh
Signed-off-by: Peter Kjellerstedt <pkj at axis.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
oe-init-build-env | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/oe-init-build-env b/oe-init-build-env
index 67eddcd..68af7b5 100755
--- a/oe-init-build-env
+++ b/oe-init-build-env
@@ -30,6 +30,8 @@ if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./oe-init-build-env" ]; then
else
if [ -n "$BASH_SOURCE" ]; then
OEROOT="`dirname $BASH_SOURCE`"
+ elif [ -n "$ZSH_NAME" ]; then
+ OEROOT="`dirname $0`"
else
OEROOT="`pwd`"
fi
More information about the Openembedded-commits
mailing list