summaryrefslogtreecommitdiffstats
path: root/poky-init-build-env
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-28 10:49:17 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-21 17:49:17 +0000
commit3ef80db73c69b8a731beb8ea4921357a041564e5 (patch)
tree600ace9c046f90b42a5d2b69aae9565b4ce08969 /poky-init-build-env
parent66e6837b536859bcf940380cfcdf50670790d889 (diff)
downloadopenembedded-core-contrib-3ef80db73c69b8a731beb8ea4921357a041564e5.tar.gz
poky-init-build-env: unbork for zsh
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'poky-init-build-env')
-rwxr-xr-xpoky-init-build-env2
1 files changed, 1 insertions, 1 deletions
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