Skip to content

Commit af347e2

Browse files
authored
Merge pull request elizaOS#3900 from 0xbryer/patch-1
chore: optimize cleanup script with `xargs`
2 parents c57e6ee + d3adc8c commit af347e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/clean.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ cd "$(dirname "$0")"/..
55
echo "Cleanup started."
66
# Find and remove node_modules directories, dist directories.
77
find . -type d -name "node_modules" -print0 | xargs -0 rm -rf
8-
find . -type d -name "dist" -exec rm -rf {} +
9-
find . -type d -name ".turbo" -exec rm -rf {} +
8+
find . -type d -name "dist" -print0 | xargs -0 rm -rf
9+
find . -type d -name ".turbo" -print0 | xargs -0 rm -rf
1010

1111
# Remove core cache
1212
rm -rf ./packages/core/cache

0 commit comments

Comments
 (0)