diff options
-rwxr-xr-x | poky-init-build-env | 2 |
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 @@ | |||
25 | # being sourced. To workaround the shell limitation use "set arg1" prior | 25 | # being sourced. To workaround the shell limitation use "set arg1" prior |
26 | # to sourcing this script. | 26 | # to sourcing this script. |
27 | # | 27 | # |
28 | if [ "x$0" = "x./poky-init-build-env" ]; then | 28 | if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./poky-init-build-env" ]; then |
29 | echo "Error: This script needs to be sourced. Please run as '. ./poky-init-build-env'" | 29 | echo "Error: This script needs to be sourced. Please run as '. ./poky-init-build-env'" |
30 | else | 30 | else |
31 | if [ -n "$BASH_SOURCE" ]; then | 31 | if [ -n "$BASH_SOURCE" ]; then |