Skip to content

Commit

Permalink
Git-clean only if under Git
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 21, 2024
1 parent 4528a34 commit 49000cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cleanup.win
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49000cb

Please sign in to comment.