From 71d3e7b4ca25f08eb97e93edf4740282d8475d25 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 13 Nov 2016 18:29:06 +0000 Subject: Docs: Fix for zsh in env.sh --- Docs/env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Docs') diff --git a/Docs/env.sh b/Docs/env.sh index a1253f034..9cfc95650 100644 --- a/Docs/env.sh +++ b/Docs/env.sh @@ -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 -- cgit v1.2.3