about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2024-07-13 00:56:44 -0500
committerCase Duckworth2024-07-13 00:56:44 -0500
commit8964c271f5090827ea974e5c62e9d3941152b0a3 (patch)
tree0409c2f72bbeb34123a4c73725ef2ade3c15f1d6
parentFix package-ensure (diff)
downloaddots-8964c271f5090827ea974e5c62e9d3941152b0a3.tar.gz
dots-8964c271f5090827ea974e5c62e9d3941152b0a3.zip
Refactor getfiles
-rwxr-xr-xdots.sh7
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
62getfiles() { 62getfiles() {
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
67homify() { 72homify() {