From bfe11b70bf39eef8f9ddac0d18a3e2439d125d55 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Tue, 23 Jan 2024 16:57:53 +0100 Subject: [PATCH] update-nvim-plugins doesn't break with plugins stupid enough to include infinetely recursive symlinks (WTF) --- scripts/update-nvim-plugins.rkt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/update-nvim-plugins.rkt b/scripts/update-nvim-plugins.rkt index 40242ff..c2266f1 100755 --- a/scripts/update-nvim-plugins.rkt +++ b/scripts/update-nvim-plugins.rkt @@ -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"))