libo_git_from_tar.sh: use curl if wget is not found
riccardo.magliocchetti at gmail.com
Mon Jul 23 14:43:05 PDT 2012
Il 23/07/2012 20:33, Norbert Thiebaud ha scritto:
> On Mon, Jul 23, 2012 at 1:20 PM, Riccardo Magliocchetti
> <riccardo.magliocchetti at gmail.com> wrote:
>> tried libo_git_from_tar.sh on mac os x and failed because of missing wget,
>> since we have curl which should do it let's try tp use it.
>> This has been lightly tested, read: i've verified that the both on linux and
>> on mac os x it starts downloading. It is still running on mac os x and
>> tomorrow will know if it worked fine. Anyway the patch looks simple enough
>> to be correct.
>> Please review.
> @@ -77,6 +77,22 @@ shift
> +# Wrapper for curl / wget
> + if command -v wget; then
> + wget -c $1 -P $2
> + else
> + if command -v curl; then
> + curl -C --create-dirs $1 -o $2/$(basename $1)
> + exit 1<--- that looks wrong !!
indeed, proper patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3045 bytes
Desc: not available
More information about the LibreOffice