Skip to content

Commit

Permalink
Refactor script/clean and script/clean-branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Nov 13, 2024
1 parent a85b2a3 commit fa41bea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions script/clean
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#/ Usage: script/clean
#/ Clean all node_modules and pnpm-lock.yaml files recursively.
# Usage: script/clean
# Clean all node_modules and pnpm-lock.yaml files recursively.

echo "Deleting all node_modules and pnpm-lock.yaml files recursively 🗑"
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + -print
Expand Down
4 changes: 2 additions & 2 deletions script/clean-branches
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#/ Usage: script/clean-branches
#/ Delete all branches except main and testnet.
# Usage: script/clean-branches
# Delete all branches except main and testnet.

echo "Deleting all branches except 'main' 🗑"
git branch | grep -v "main" | xargs git branch -D
Expand Down

0 comments on commit fa41bea

Please sign in to comment.