Don't use find if find can't be found

This commit is contained in:
Henrik Lissner 2020-01-08 22:09:42 -05:00
parent 309e322037
commit b7dc9c644e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -105,7 +105,10 @@ declaration) or dependency thereof that hasn't already been."
(straight-check-for-modifications (straight-check-for-modifications
(when (file-directory-p (straight--modified-dir)) (when (file-directory-p (straight--modified-dir))
'(find-when-checking))) '(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 (straight--packages-not-to-rebuild
(or straight--packages-not-to-rebuild (make-hash-table :test #'equal))) (or straight--packages-not-to-rebuild (make-hash-table :test #'equal)))
(straight--packages-to-rebuild (straight--packages-to-rebuild