Skip to content

Commit

Permalink
fix: Make ./cleanup script reentrant (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonov548 authored and krlmlr committed Dec 7, 2024
1 parent 76bc023 commit ff5ac1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -ex

# Check if the archive already exists
if [ -f "duckdb.tar.xz" ]; then
echo "duckdb.tar.xz already exists. Skipping compression."
exit 0
fi

# For CI/CD: only compress if expansion is possible too
if which xz > /dev/null; then
if [ -d .git ]; then git clean -fdx src; fi
Expand Down

0 comments on commit ff5ac1b

Please sign in to comment.