Don't ship frameworks in repository, instead we download them.

This commit is contained in:
Cheng Zhao 2013-06-03 17:57:37 +08:00
parent bf409efc46
commit 600f38c94d
6 changed files with 101 additions and 0 deletions

14
script/lib/polite-curl Executable file
View file

@ -0,0 +1,14 @@
if [ -t 0 ] ; then # If stdout is a terminal
INTERACTIVE=1
fi
polite_curl()
{
if [ $INTERACTIVE ] ; then
CURL_ARGS="--progress-bar"
else
CURL_ARGS="-fsS"
fi
curl $CURL_ARGS $*
}