From: Peter Kjellerstedt Date: Fri, 5 Apr 2013 16:59:46 +0000 (+0200) Subject: oe-init-build-env: Make it use the correct $OEROOT with zsh X-Git-Tag: 2015-4~6917 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=f0aa69296f4c1d4214f9dbea236b0ed330b8154b;p=openembedded-core.git oe-init-build-env: Make it use the correct $OEROOT with zsh Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- diff --git a/oe-init-build-env b/oe-init-build-env index 67eddcd295..68af7b5193 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