Docs: Fix for zsh in env.sh

This commit is contained in:
Daniel Silverstone 2016-11-13 18:29:06 +00:00
parent a2388a91cf
commit 71d3e7b4ca
1 changed files with 2 additions and 2 deletions

View File

@ -28,13 +28,13 @@ if [ "x${HOST}" = "x" ]; then
fi
else
HOST_CC_LIST="${HOST}-cc ${HOST}-gcc /opt/netsurf/${HOST}/cross/bin/${HOST}-cc /opt/netsurf/${HOST}/cross/bin/${HOST}-gcc"
for HOST_CC_V in ${HOST_CC_LIST};do
for HOST_CC_V in $(echo ${HOST_CC_LIST});do
HOST_CC=$(/bin/which ${HOST_CC_V})
if [ "x${HOST_CC}" != "x" ];then
break
fi
done
if [ "x${HOST_CC}" == "x" ];then
if [ "x${HOST_CC}" = "x" ];then
echo "Unable to execute host compiler for HOST=${HOST}. is it set correctly?"
return 1
fi