This script is sourced so we should return, not exit.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
if [ "$py_v3_check" != "" ]; then
echo "Bitbake is not compatible with python v3"
echo "Please set up python v2 as your default python interpreter"
- exit 1
+ return 1
fi
# Similarly, we now have code that doesn't parse correctly with older
py_v26_check=`python -c 'import sys; print sys.version_info >= (2,7,3)'`
if [ "$py_v26_check" != "True" ]; then
echo "BitBake requires Python 2.7.3 or later"
- exit 1
+ return 1
fi
if [ "x$BDIR" = "x" ]; then