Build Mac: harden build script against paths with spaces

This commit is contained in:
Christian Beer 2017-08-10 10:30:32 +02:00
parent aaec0f9490
commit 7b2fb9b32f
1 changed files with 4 additions and 4 deletions

View File

@ -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