update-nvim-plugins doesn't break with plugins stupid enough to include infinetely recursive symlinks (WTF)

This commit is contained in:
LordMZTE 2024-01-23 16:57:53 +01:00
parent 58be67fc31
commit bfe11b70bf
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -8,7 +8,9 @@
(define dirs
(map (λ (path) (match-let-values ([(p _ _) (split-path path)]) p))
(find-files (λ (path) (equal? (path->string (last (explode-path path))) ".git")) plugin-dir)))
(find-files (λ (path) (equal? (path->string (last (explode-path path))) ".git"))
plugin-dir
#:follow-links? #f)))
(define git-path (find-executable-path "git"))