fix mason re-checkout [skip ci]

This commit is contained in:
Dane Springmeyer 2016-03-10 17:48:20 -08:00
parent bb0565d4d8
commit f9397e7e66

View file

@ -15,7 +15,7 @@ MASON_VERSION="694d08c"
function setup_mason() { function setup_mason() {
if [[ ! -d ./.mason ]]; then if [[ ! -d ./.mason ]]; then
git clone https://github.com/mapbox/mason.git ./.mason git clone https://github.com/mapbox/mason.git ./.mason
git checkout ${MASON_VERSION} (cd ./.mason && git checkout ${MASON_VERSION})
else else
echo "Updating to latest mason" echo "Updating to latest mason"
(cd ./.mason && git fetch && git checkout ${MASON_VERSION}) (cd ./.mason && git fetch && git checkout ${MASON_VERSION})