From b7dc9c644eb587fd1aeb566fde76f0bb6586d5e4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 8 Jan 2020 22:09:42 -0500 Subject: [PATCH] Don't use find if find can't be found --- core/cli/packages.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/cli/packages.el b/core/cli/packages.el index d834e0432..a5300009f 100644 --- a/core/cli/packages.el +++ b/core/cli/packages.el @@ -105,7 +105,10 @@ declaration) or dependency thereof that hasn't already been." (straight-check-for-modifications (when (file-directory-p (straight--modified-dir)) '(find-when-checking))) - (straight--allow-find (and straight-check-for-modifications t)) + (straight--allow-find + (and straight-check-for-modifications + (executable-find straight-find-executable) + t)) (straight--packages-not-to-rebuild (or straight--packages-not-to-rebuild (make-hash-table :test #'equal))) (straight--packages-to-rebuild