Skip to content

Commit

Permalink
build: delete package dir before redownloading it
Browse files Browse the repository at this point in the history
  • Loading branch information
guyush1 committed Jan 15, 2025
1 parent 7d4a19c commit 0971bfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compilation/download_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ function extract_package() {

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"
if [[ $? -ne 0 ]]; then
return 1
Expand Down

0 comments on commit 0971bfc

Please sign in to comment.