diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-08 15:07:52 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-08 15:07:52 -0700 |
commit | 8ea973869c6ec64be8a69b7c28e8533f0a1d7da7 (patch) | |
tree | 7fa5f2e8ab83094eb57fba4778b42333f1e99b17 | |
parent | 002e811f53251664a1bfaf11a87fadb317263164 (diff) | |
download | dotfiles-8ea973869c6ec64be8a69b7c28e8533f0a1d7da7.tar.gz |
unskel: don't recurse
-rwxr-xr-x | bin/unskel | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |