aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-05-09 11:04:33 -0400
committerBenjamin Linskey2026-05-09 11:04:33 -0400
commit1b1caca62156fbb72dbf3c32cbab94b7fe5fabf5 (patch)
tree91121d25ad6e584a296c273b823a8dc5e541b642
parent393f7d75b1ab29762232e3eee38a07a55ca0e459 (diff)
downloaddotfiles-1b1caca62156fbb72dbf3c32cbab94b7fe5fabf5.tar.gz

Change find arg to improve portability

GNU find doesn’t implement the “-depth n” option.

-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a6449ef..555d8b1 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
.PHONY: install
install:
rm -f "$$HOME"/.bash_profile
- find "$$PWD" -depth 1 -name '.*' -not -name .git -not -name .DS_Store \
+ find "$$PWD" -maxdepth 1 -name '.*' -not -name .git -not -name .DS_Store \
-not -name .gitignore -exec ln -sf {} "$$HOME" \;
# Regenerate Vim help tags.
if type vim >/dev/null 2>&1; then vim -e -s -u NONE -c 'helptags ALL' -c q; fi