build: delete package dir before redownloading it
This commit is contained in:
parent
7d4a19c440
commit
0971bfc768
@ -103,6 +103,10 @@ function extract_package() {
|
|||||||
|
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
|
# Make sure output dir is empty, so we could move content into it.
|
||||||
|
# The directory might not exist, so we need to pass || true so that set -e won't fail us.
|
||||||
|
rm -rf "$output_dir" || true
|
||||||
|
|
||||||
mv "$temp_dir/$package_dir" "$output_dir"
|
mv "$temp_dir/$package_dir" "$output_dir"
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user