From fa41bead3aeb6868df66c7021a15f472e9d9de88 Mon Sep 17 00:00:00 2001 From: Yoginth Date: Wed, 13 Nov 2024 10:39:17 +0530 Subject: [PATCH] Refactor script/clean and script/clean-branches --- script/clean | 4 ++-- script/clean-branches | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script/clean b/script/clean index 0a6260997da8..20c8ce0d7a7f 100755 --- a/script/clean +++ b/script/clean @@ -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 diff --git a/script/clean-branches b/script/clean-branches index b4757d1cbbe1..0ec7081ac2be 100755 --- a/script/clean-branches +++ b/script/clean-branches @@ -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