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
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue