aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-29 08:59:42 -0500
committerCraig Jennings <c@cjennings.net>2025-10-29 08:59:42 -0500
commite92d343a4a65ec18083e3ada5c86e88e8d79fa95 (patch)
tree8dbddb95493980dfd093ac7ae21df36f3c11e1d4 /scripts
parentc14d21649fd45d7154fa90025f6ec4db06d16f30 (diff)
downloaddotemacs-e92d343a4a65ec18083e3ada5c86e88e8d79fa95.tar.gz
dotemacs-e92d343a4a65ec18083e3ada5c86e88e8d79fa95.zip
refactor:script: simplify elisp compiled file deletion script
Remove user confirmation and file listing prompt. Simplify the script by directly deleting .eln and .elc files in the specified location and confirming completion.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/delete-elisp-compiled-files.sh23
1 files changed, 3 insertions, 20 deletions
diff --git a/scripts/delete-elisp-compiled-files.sh b/scripts/delete-elisp-compiled-files.sh
index b64a6540..5976c92b 100755
--- a/scripts/delete-elisp-compiled-files.sh
+++ b/scripts/delete-elisp-compiled-files.sh
@@ -2,23 +2,6 @@
location=$HOME/.emacs.d/
-echo ""; echo "You are about to delete emacs lisp compiled files (.eln and .elc) recursively from $location";
-
-# Show the files it will delete
-echo "The following files will be deleted:"
-find $location -type f \( -name "*.eln" -o -name "*.elc" \) -print
-
-
-echo ""; echo ""
-read -p "Are you sure you want to continue? (y/n) " -n 1 -r
-echo # move to a new line
-if [[ $REPLY =~ ^[Yy]$ ]]
-then
- echo "Deleting files..."
- find $location -type f \( -name "*.eln" -o -name "*.elc" \) -exec rm -f {} +
- echo "Files deleted."
-else
- echo "Operation cancelled."
-fi
-
-echo ""; echo ""
+echo "Deleting emacs lisp compiled files (.eln and .elc) from $location..."
+find $location -type f \( -name "*.eln" -o -name "*.elc" \) -exec rm -f {} +
+echo "Done."