Update dotfiles/.local/bin/install-dotfiles
This commit is contained in:
parent
365f56af0d
commit
3275814050
1 changed files with 3 additions and 3 deletions
|
@ -33,15 +33,15 @@ 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")"
|
||||||
cp -rf "$DOTFILE_FOLDER/" "$HOME/$BASENAME_FOLDER"
|
cp -rf "$DOTFILE_FOLDER" "$HOME/$BASENAME_FOLDER"
|
||||||
done < <(find /usr/src/professor-dotfiles/dotfiles -type d -maxdepth 1)
|
done < <(find /usr/src/professor-dotfiles/dotfiles -maxdepth 1 -mindepth 1 -type d)
|
||||||
|
|
||||||
# Copy dotfile files
|
# Copy dotfile files
|
||||||
while read DOTFILE_FILE; do
|
while read DOTFILE_FILE; do
|
||||||
BASENAME_FILE="$(basename "$DOTFILE_FILE")"
|
BASENAME_FILE="$(basename "$DOTFILE_FILE")"
|
||||||
cp "$DOTFILE_FILE" "$HOME/$BASENAME_FILE"
|
cp "$DOTFILE_FILE" "$HOME/$BASENAME_FILE"
|
||||||
chmod 600 "$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
|
# Ensure .local/bin contents are executable
|
||||||
while read LOCAL_BIN; do
|
while read LOCAL_BIN; do
|
||||||
|
|
Loading…
Reference in a new issue