diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2013-04-05 18:59:46 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-05 23:05:30 +0100 |
commit | f0aa69296f4c1d4214f9dbea236b0ed330b8154b (patch) | |
tree | acbad1aaae60405a318672d321dfbbd1784e5fbb /oe-init-build-env | |
parent | 6fc14169ac0c3001e3a69eda8d07fc0ac93a15ee (diff) | |
download | openembedded-core-contrib-f0aa69296f4c1d4214f9dbea236b0ed330b8154b.tar.gz |
oe-init-build-env: Make it use the correct $OEROOT with zsh
Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'oe-init-build-env')
-rwxr-xr-x | 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 67eddcd295b..68af7b5193b 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 |