Skip to content

Commit ff5ac1b

Browse files
Antonov548krlmlr
authored andcommitted
fix: Make ./cleanup script reentrant (#634)
1 parent 76bc023 commit ff5ac1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cleanup

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
set -ex
44

5+
# Check if the archive already exists
6+
if [ -f "duckdb.tar.xz" ]; then
7+
echo "duckdb.tar.xz already exists. Skipping compression."
8+
exit 0
9+
fi
10+
511
# For CI/CD: only compress if expansion is possible too
612
if which xz > /dev/null; then
713
if [ -d .git ]; then git clean -fdx src; fi

0 commit comments

Comments
 (0)