Skip to content

Commit

Permalink
fix(_prepare.el): Resolve infinite recursion in exec-path setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 12, 2023
1 parent 88210f3 commit 5115186
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lisp/_prepare.el
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ the `eask-start' execution.")

(defun eask--update-exec-path ()
"Add all bin directory to `exec-path'."
(dolist (filename (directory-files-recursively package-user-dir directory-files-no-dot-files-regexp nil nil t))
(when (string-suffix-p "bin/" (file-name-directory filename))
(add-to-list 'exec-path (file-name-directory filename) t)))
(dolist (entry (directory-files package-user-dir t directory-files-no-dot-files-regexp))
(when-let* ((bin (expand-file-name "bin" entry))
((file-directory-p bin)))
(add-to-list 'exec-path bin t)))
(delete-dups exec-path))

(defun eask--update-load-path ()
Expand Down

0 comments on commit 5115186

Please sign in to comment.