From 3275814050e84b2dc3d99c71163b13ddb87d5f35 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 3 Sep 2022 07:32:57 +0000 Subject: [PATCH] Update dotfiles/.local/bin/install-dotfiles --- dotfiles/.local/bin/install-dotfiles | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/.local/bin/install-dotfiles b/dotfiles/.local/bin/install-dotfiles index 0703547a..2120713b 100644 --- a/dotfiles/.local/bin/install-dotfiles +++ b/dotfiles/.local/bin/install-dotfiles @@ -33,15 +33,15 @@ fi # Copy dotfile folders while read DOTFILE_FOLDER; do BASENAME_FOLDER="$(basename "$DOTFILE_FOLDER")" - cp -rf "$DOTFILE_FOLDER/" "$HOME/$BASENAME_FOLDER" -done < <(find /usr/src/professor-dotfiles/dotfiles -type d -maxdepth 1) + cp -rf "$DOTFILE_FOLDER" "$HOME/$BASENAME_FOLDER" +done < <(find /usr/src/professor-dotfiles/dotfiles -maxdepth 1 -mindepth 1 -type d) # Copy dotfile files while read DOTFILE_FILE; do BASENAME_FILE="$(basename "$DOTFILE_FILE")" cp "$DOTFILE_FILE" "$HOME/$BASENAME_FILE" chmod 600 "$HOME/$BASENAME_FILE" -done < <(find /usr/src/professor-dotfiles/dotfiles -type f -maxdepth 1) +done < <(find /usr/src/professor-dotfiles/dotfiles -maxdepth 1 -mindepth 1 -type f) # Ensure .local/bin contents are executable while read LOCAL_BIN; do