diff --git a/cleanup b/cleanup index 8244efda7..a209c2c92 100755 --- a/cleanup +++ b/cleanup @@ -4,7 +4,7 @@ set -ex # For CI/CD: only compress if expansion is possible too if which xz > /dev/null; then - git clean -fdx src + if [ -d .git ]; then git clean -fdx src; fi cd src tar cvJf duckdb.tar.xz duckdb rm -rf duckdb diff --git a/cleanup.win b/cleanup.win index e347880ec..b8fa55dfd 100644 --- a/cleanup.win +++ b/cleanup.win @@ -4,7 +4,7 @@ set -ex # For CI/CD: only compress if expansion is possible too if which xz > /dev/null; then - git clean -fdx src + if [ -d .git ]; then git clean -fdx src; fi cd src find duckdb -type f | egrep '[.](cc|cpp|h|hpp)$' | xargs dos2unix tar cvJf duckdb.tar.xz duckdb