Update dotfiles/.local/bin/install-dotfiles

This commit is contained in:
Brian Zalewski 2022-09-03 07:38:09 +00:00
parent fb390efb80
commit f152447a0a

View file

@ -33,8 +33,10 @@ fi
# Copy dotfile folders # Copy dotfile folders
while read DOTFILE_FOLDER; do while read DOTFILE_FOLDER; do
BASENAME_FOLDER="$(basename "$DOTFILE_FOLDER")" BASENAME_FOLDER="$(basename "$DOTFILE_FOLDER")"
echo "Folder -> $BASENAME_FOLDER" if [ ! -d "$HOME/$BASENAME_FOLDER" ]; then
cp -rf "$DOTFILE_FOLDER" "$HOME/$BASENAME_FOLDER" mkdir -p "$HOME/$BASENAME_FOLDER"
fi
cp -rf "$DOTFILE_FOLDER/*" "$HOME/$BASENAME_FOLDER"
done < <(find /usr/src/professor-dotfiles/dotfiles -maxdepth 1 -mindepth 1 -type d) done < <(find /usr/src/professor-dotfiles/dotfiles -maxdepth 1 -mindepth 1 -type d)
# Copy dotfile files # Copy dotfile files