From 7b2fb9b32f3a25111e424937297693b4851c90f8 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Thu, 10 Aug 2017 10:30:32 +0200 Subject: [PATCH] Build Mac: harden build script against paths with spaces --- 3rdParty/buildMacDependencies.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/3rdParty/buildMacDependencies.sh b/3rdParty/buildMacDependencies.sh index b10480b405c..200a7cb1fee 100755 --- a/3rdParty/buildMacDependencies.sh +++ b/3rdParty/buildMacDependencies.sh @@ -115,20 +115,20 @@ download_and_build() { tar -xf ${FILENAME} fi cd ${DIRNAME} || exit 1 - source ${BUILDSCRIPT} --prefix ${PREFIX} ${extra_options} + source ${BUILDSCRIPT} --prefix "${PREFIX}" ${extra_options} if [ $? -ne 0 ]; then exit 1; fi cd ../.. || exit 1 touch ${FLAGFILE} } mkdir -p 3rdParty/mac -mkdir -p ${PREFIX} +mkdir -p "${PREFIX}" cd "${ROOTDIR}/3rdParty/mac" || exit 1 if [ "${doclean}" = "yes" ]; then echo "cleaning cache" - rm -rf ${PREFIX} - mkdir -p ${PREFIX} + rm -rf "${PREFIX}" + mkdir -p "${PREFIX}" fi # this will pull in the variables used below