Patchwork [3/3] oe-init-build-env: Make it use the correct $OEROOT with zsh

login
register
mail settings
Submitter Peter Kjellerstedt
Date April 5, 2013, 4:59 p.m.
Message ID <572541c9fc531bb219696c36f64052af21ea4b1f.1365179842.git.pkj@axis.com>
Download mbox | patch
Permalink /patch/47521/
State Accepted
Commit 813127247a1100b1abe179dfba25795560eac864
Headers show

Comments

Peter Kjellerstedt - April 5, 2013, 4:59 p.m.
Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
---
 oe-init-build-env | 2 ++
 1 file changed, 2 insertions(+)

Patch

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