编译envsetup.sh出现Only bash is supported, use of other shell would lead to erroneous results
看了一下脚本内容
if [ "x$SHELL" != "x/bin/bash" ]; then
case `ps -o command -p $$` in
*bash*)
;;
*)
echo "WARNING: Only bash is supported, use of other shell would lead to erroneous results"
;;
esac
fi
发现是由于我的是zsh,只需要改成bash就行了
chsh -s /bin/bash