Skip to content

Commit

Permalink
Build Mac: harden build script against paths with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianBeer committed Aug 10, 2017
1 parent aaec0f9 commit 7b2fb9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 3rdParty/buildMacDependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b2fb9b

Please sign in to comment.