This commit is contained in:
[yuri]
2025-12-11 17:55:39 +01:00
parent c0eaba6b5e
commit ba643c3042

View File

@@ -110,12 +110,12 @@ say_bold "Copying contents of $OS dotfiles to $TARGET_DIR..."
if command -v rsync >/dev/null 2>&1; then
# Ensure a trailing slash on the source to copy contents *of* the directory
rsync -avz "$DOTFILES_SRC_DIR/" "$TARGET_DIR"
sudo rsync -avz "$DOTFILES_SRC_DIR/" "$TARGET_DIR"
say_green "Successfully synchronized dotfiles using rsync."
else
# Fallback to cp if rsync is not available
say_yellow "rsync not found. Falling back to 'cp -r'."
cp -r "$DOTFILES_SRC_DIR/." "$TARGET_DIR"
sudo cp -r "$DOTFILES_SRC_DIR/." "$TARGET_DIR"
say_green "Successfully copied dotfiles using cp."
fi
@@ -130,8 +130,8 @@ say_yellow "First we make a backup of .config"
say_yellow "Wait for it ...."
say_yellow "########################################################################"
cp -Rf ~/.config ~/.config-backup-$(date +%Y.%m.%d-%H.%M.%S)
cp -arf /etc/skel/. ~
sudo cp -Rf ~/.config ~/.config-backup-$(date +%Y.%m.%d-%H.%M.%S)
sudo cp -arf /etc/skel/. ~
say_yellow "##############################################################"
say_yellow "################### $(basename $0) done"