Skip to content

Commit 98f57ba

Browse files
committedDec 3, 2017
travis: Improve the prebuilt download stuff a bit.
1 parent 714191a commit 98f57ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎.travis/build.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ else
322322
# Do a sparse, shallow checkout to keep disk space usage down.
323323
mkdir -p $PREBUILT_DIR
324324
cd $PREBUILT_DIR
325-
git init
325+
git init > /dev/null
326326
git config core.sparseCheckout true
327327
git remote add origin https://$GH_TOKEN@github.com/$PREBUILT_REPO_OWNER/${PREBUILT_REPO}.git
328328
cat > .git/info/sparse-checkout <<EOF
@@ -334,7 +334,8 @@ EOF
334334
git fetch --depth 1 origin master
335335
git checkout master
336336
echo ""
337-
echo "Prebuilt repo checkout is using $(du -h -s $PREBUILD_DIR)"
337+
PREBUILT_DIR_DU=$(du -h -s . | sed -e's/[ \t]*\.$//')
338+
echo "Prebuilt repo checkout is using $PREBUILT_DIR_DU"
338339
)
339340
echo "============================================="
340341
fi

0 commit comments

Comments
 (0)
Please sign in to comment.