replicant-vendor_replicant/build/tasks/http_curl_prebuilt.sh
Brandon McAnsh 1846ec0341 http_prebuilt: Implement archive of artifacts
* checksum will be downloaded and asserted to prevent a
    redownload every clean
* Archives will exist (invisibly) at vendor/cm/prebuilt/archive

Change-Id: I637e86cacd146d665044a119885900dc4660e22b
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2017-01-08 15:58:48 +00:00

7 lines
144 B
Bash
Executable File

#!/bin/bash
url=$1
output=$2
curl -L "$url" --create-dirs -o $output --compressed -H "Accept-Encoding: gzip,deflate,sdch" && exit 0 || exit 1