From d5f96d23448589b2c7d361cc469d2efa8c75ea1e Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 28 Dec 2010 10:49:17 -0700 Subject: [PATCH] poky-init-build-env: unbork for zsh (From OE-Core rev: 3ef80db73c69b8a731beb8ea4921357a041564e5) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- poky-init-build-env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poky-init-build-env b/poky-init-build-env index 82590f2012..3c8aa5341b 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