From 8964c271f5090827ea974e5c62e9d3941152b0a3 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 13 Jul 2024 00:56:44 -0500 Subject: Refactor getfiles --- dots.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dots.sh b/dots.sh index c312cb1..99b7afd 100755 --- a/dots.sh +++ b/dots.sh @@ -61,7 +61,12 @@ mklink() { # mklink SOURCE DEST getfiles() { d="$1"; shift - find "$d" -type f -a -not -name "$(basename "$0")" "$@" + for file + do find "$d" -type f \ + -a -not -name "$(basename "$0")" \ + -a -not -path "$d/.git*" \ + -a -iname "$file" + done } homify() { -- cgit 1.4.1-21-gabe81