From ca8726a3daa9dbfadacf7645d36454b9caf0f522 Mon Sep 17 00:00:00 2001 From: Brian Ouz Date: Fri, 19 Apr 2024 21:41:41 -0400 Subject: [PATCH] remove depth from find call --- shelm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shelm b/shelm index 147c0ea..b78688e 100755 --- a/shelm +++ b/shelm @@ -122,7 +122,7 @@ fetch() { # List dependencies in the local package cache, in the form $author/$project/$version. list_dependencies() { - cd "$pkgdir" && find . -type d -depth 3 | sed 's|^./||' + cd "$pkgdir" && (find . -type d | grep -E '^\.(\/[^\/]+){3}$' | sed 's|^./||' || :) } # Prune dependencies from the local package cache that don't match the required