summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-08 15:07:52 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-08 15:07:52 -0700
commit8ea973869c6ec64be8a69b7c28e8533f0a1d7da7 (patch)
tree7fa5f2e8ab83094eb57fba4778b42333f1e99b17
parent002e811f53251664a1bfaf11a87fadb317263164 (diff)
downloaddotfiles-8ea973869c6ec64be8a69b7c28e8533f0a1d7da7.tar.gz
unskel: don't recurse
-rwxr-xr-xbin/unskel2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/unskel b/bin/unskel
index c3d33332..80f77d53 100755
--- a/bin/unskel
+++ b/bin/unskel
@@ -6,7 +6,7 @@
SKEL="/etc/skel"
torm=""
-for skelfile in $(find $SKEL -type f | sed -e "s|${SKEL}/||"); do
+for skelfile in $(find $SKEL -maxdepth 1 -type f | sed -e "s|${SKEL}/||"); do
# The following conditional passes if the file in $HOME is the
# *same* as the file in $SKEL, so it ought to be deleted.
if diff -q "$SKEL/$skelfile" "$HOME/$skelfile" >/dev/null 2>&1; then