Skip to content

Commit

Permalink
chore: postBuild exec
Browse files Browse the repository at this point in the history
  • Loading branch information
kirangadhave committed May 29, 2024
1 parent ce7f3fc commit 200d97a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .binder/postBuild
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
set -ex
#!/bin/bash

rm -rf * !(examples/*) !(.binder/*)
# Define the directories to exclude
EXCLUDE_DIRS=(".git" "examples" ".binder")

# Convert the array to a pattern for find
EXCLUDE_PATTERN=$(printf "! -name %s -prune " "${EXCLUDE_DIRS[@]}")

# Find and remove everything except the excluded directories
find . -maxdepth 1 -mindepth 1 \( $EXCLUDE_PATTERN \) -exec rm -rf {} +

echo "Cleanup complete. Only the specified directories remain."
1 change: 0 additions & 1 deletion .binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
persist_ext>=1.6.0
jupyterlab>=4.0.4
altair>=5
paretoset
pandas
numpy
matplotlib
Expand Down

0 comments on commit 200d97a

Please sign in to comment.