Update dotfiles/.local/bin/install-dotfiles
This commit is contained in:
parent
fb390efb80
commit
f152447a0a
1 changed files with 4 additions and 2 deletions
|
@ -33,8 +33,10 @@ fi
|
|||
# Copy dotfile folders
|
||||
while read DOTFILE_FOLDER; do
|
||||
BASENAME_FOLDER="$(basename "$DOTFILE_FOLDER")"
|
||||
echo "Folder -> $BASENAME_FOLDER"
|
||||
cp -rf "$DOTFILE_FOLDER" "$HOME/$BASENAME_FOLDER"
|
||||
if [ ! -d "$HOME/$BASENAME_FOLDER" ]; then
|
||||
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)
|
||||
|
||||
# Copy dotfile files
|
||||
|
|
Loading…
Reference in a new issue