build: always download and extract tars
This caused failures in our ci-cd. Always downloading & extracting the tars makes sure we will redownload them & extract if the previous download / extraction was faulty.
This commit is contained in:
parent
eef9ea9215
commit
7d4a19c440
@ -64,11 +64,6 @@ function download_package() {
|
|||||||
local url="$1"
|
local url="$1"
|
||||||
local output="$2"
|
local output="$2"
|
||||||
|
|
||||||
if [[ -f "$output" ]]; then
|
|
||||||
>&2 echo "Skipping download: $output already exists"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
wget "$url" -O "$output"
|
wget "$url" -O "$output"
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
>&2 echo "Error: failed to download $url"
|
>&2 echo "Error: failed to download $url"
|
||||||
@ -98,11 +93,6 @@ function extract_package() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d "$output_dir" ]]; then
|
|
||||||
>&2 echo "Skipping extraction: $output_dir already exists"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
pushd "$temp_dir" > /dev/null
|
pushd "$temp_dir" > /dev/null
|
||||||
|
|
||||||
unpack_tarball "$tarball_realpath"
|
unpack_tarball "$tarball_realpath"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user