diff options
author | Case Duckworth | 2024-07-13 00:56:44 -0500 |
---|---|---|
committer | Case Duckworth | 2024-07-13 00:56:44 -0500 |
commit | 8964c271f5090827ea974e5c62e9d3941152b0a3 (patch) | |
tree | 0409c2f72bbeb34123a4c73725ef2ade3c15f1d6 | |
parent | Fix package-ensure (diff) | |
download | dots-8964c271f5090827ea974e5c62e9d3941152b0a3.tar.gz dots-8964c271f5090827ea974e5c62e9d3941152b0a3.zip |
Refactor getfiles
-rwxr-xr-x | dots.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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 | |||
61 | 61 | ||
62 | getfiles() { | 62 | getfiles() { |
63 | d="$1"; shift | 63 | d="$1"; shift |
64 | find "$d" -type f -a -not -name "$(basename "$0")" "$@" | 64 | for file |
65 | do find "$d" -type f \ | ||
66 | -a -not -name "$(basename "$0")" \ | ||
67 | -a -not -path "$d/.git*" \ | ||
68 | -a -iname "$file" | ||
69 | done | ||
65 | } | 70 | } |
66 | 71 | ||
67 | homify() { | 72 | homify() { |