From ff5ac1b63db40acc1a587e71136e0cf593f01e86 Mon Sep 17 00:00:00 2001 From: Michael Antonov Date: Sat, 7 Dec 2024 17:09:10 +0100 Subject: [PATCH] fix: Make `./cleanup` script reentrant (#634) --- cleanup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cleanup b/cleanup index a209c2c92..a8205b8da 100755 --- a/cleanup +++ b/cleanup @@ -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