summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xoe-init-build-env7
1 files changed, 6 insertions, 1 deletions
diff --git a/oe-init-build-env b/oe-init-build-env
index e813230a98..861c3e000e 100755
--- a/oe-init-build-env
+++ b/oe-init-build-env
@@ -31,13 +31,18 @@ elif [ -n "$ZSH_NAME" ]; then
31 THIS_SCRIPT=$0 31 THIS_SCRIPT=$0
32else 32else
33 THIS_SCRIPT="$(pwd)/oe-init-build-env" 33 THIS_SCRIPT="$(pwd)/oe-init-build-env"
34 if [ ! -e "$THIS_SCRIPT" ]; then
35 echo "Error: $THIS_SCRIPT doesn't exist!" >&2
36 echo "Please run this script in oe-init-build-env's directory." >&2
37 exit 1
38 fi
34fi 39fi
35if [ -n "$BBSERVER" ]; then 40if [ -n "$BBSERVER" ]; then
36 unset BBSERVER 41 unset BBSERVER
37fi 42fi
38 43
39if [ -z "$ZSH_NAME" ] && [ "$0" = "$THIS_SCRIPT" ]; then 44if [ -z "$ZSH_NAME" ] && [ "$0" = "$THIS_SCRIPT" ]; then
40 echo "Error: This script needs to be sourced. Please run as '. $THIS_SCRIPT'" 45 echo "Error: This script needs to be sourced. Please run as '. $THIS_SCRIPT'" >&2
41 exit 1 46 exit 1
42fi 47fi
43 48