Skip to content

Commit

Permalink
fix(straight): correctly call +delete-file-or-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 21, 2023
1 parent 597df98 commit ebb8ed5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/me-bootstrap.el
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@
;;;###autoload
(defun +straight-prune-build-cache ()
(let* ((default-directory (file-name-concat straight-base-dir "straight/")))
(mapc #'+delete-file-or-directory
;; Prune the build cache and build directory.
(straight-prune-build)
;; Prune old build directories
(mapc (+apply-partially-right #'+delete-file-or-directory 'trash 'recursive)
(seq-filter
(lambda (name)
(not (member name (list straight-build-dir
Expand Down

0 comments on commit ebb8ed5

Please sign in to comment.