Patchwork [1/4] poky-init-build-env: unbork for zsh

login
register
mail settings
Submitter Christopher Larson
Date March 17, 2011, 4:15 p.m.
Message ID <44b4179f5b66a52fe5d45672525f60d81ba4c20b.1300378309.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/1529/
State New, archived
Headers show

Comments

Christopher Larson - March 17, 2011, 4:15 p.m.
From: Chris Larson <chris_larson@mentor.com>

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 poky-init-build-env |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/poky-init-build-env b/poky-init-build-env
index 82590f2..3c8aa53 100755
--- a/poky-init-build-env
+++ b/poky-init-build-env
@@ -25,7 +25,7 @@ 
 # being sourced.   To workaround the shell limitation use "set arg1" prior 
 # to sourcing this script.
 #
-if [ "x$0" = "x./poky-init-build-env" ]; then
+if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./poky-init-build-env" ]; then
    echo "Error: This script needs to be sourced. Please run as '. ./poky-init-build-env'"
 else
    if [ -n "$BASH_SOURCE" ]; then