[build setup] Add -L to curl invocations

To follow redirects, otherwise we might be downloading 301 HTML pages
instead of the data we want.
This commit is contained in:
Colin Walters 2010-01-06 13:56:19 -05:00
parent e5647c4f83
commit 71786e50cf

View File

@ -190,12 +190,12 @@ if [ -e $HOME/.jhbuildrc ] ; then
fi fi
echo -n "Writing ~/.jhbuildrc ... " echo -n "Writing ~/.jhbuildrc ... "
curl -s -o $HOME/.jhbuildrc $BASEURL/jhbuildrc-gnome-shell curl -L -s -o $HOME/.jhbuildrc $BASEURL/jhbuildrc-gnome-shell
echo "done" echo "done"
if [ ! -f $HOME/.jhbuildrc-custom ]; then if [ ! -f $HOME/.jhbuildrc-custom ]; then
echo -n "Writing example ~/.jhbuildrc-custom ... " echo -n "Writing example ~/.jhbuildrc-custom ... "
curl -s -o $HOME/.jhbuildrc-custom $BASEURL/jhbuildrc-custom-example curl -L -s -o $HOME/.jhbuildrc-custom $BASEURL/jhbuildrc-custom-example
echo "done" echo "done"
fi fi