Skip to content

Commit

Permalink
travis: Improve the prebuilt download stuff a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Dec 3, 2017
1 parent 714191a commit 98f57ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis/build.sh
Expand Up @@ -322,7 +322,7 @@ else
# Do a sparse, shallow checkout to keep disk space usage down.
mkdir -p $PREBUILT_DIR
cd $PREBUILT_DIR
git init
git init > /dev/null
git config core.sparseCheckout true
git remote add origin https://$GH_TOKEN@github.com/$PREBUILT_REPO_OWNER/${PREBUILT_REPO}.git
cat > .git/info/sparse-checkout <<EOF
Expand All @@ -334,7 +334,8 @@ EOF
git fetch --depth 1 origin master
git checkout master
echo ""
echo "Prebuilt repo checkout is using $(du -h -s $PREBUILD_DIR)"
PREBUILT_DIR_DU=$(du -h -s . | sed -e's/[ \t]*\.$//')
echo "Prebuilt repo checkout is using $PREBUILT_DIR_DU"
)
echo "============================================="
fi
Expand Down

0 comments on commit 98f57ba

Please sign in to comment.