]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-init-build-env: unbork for zsh
authorChris Larson <chris_larson@mentor.com>
Tue, 28 Dec 2010 17:49:17 +0000 (10:49 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Mar 2011 17:49:17 +0000 (17:49 +0000)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
poky-init-build-env

index 82590f2012719e5816707aaf2311d66a373055b8..3c8aa5341ba44c32e7c2a6b0995c4258a8ecf18a 100755 (executable)
@@ -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