From 10d5f5c45f7d771b279f7514eab01ef219684ea8 Mon Sep 17 00:00:00 2001 From: retrilzzy Date: Wed, 22 Oct 2025 23:04:51 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA?= =?UTF-8?q?=D0=B0=20pacman=20=D0=B4=D0=BE=20=D0=BD=D0=B0=D1=87=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0=20=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/install.sh | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/Scripts/install.sh b/Scripts/install.sh index ae7f0c3..699ba4c 100755 --- a/Scripts/install.sh +++ b/Scripts/install.sh @@ -40,6 +40,22 @@ install_yay() { done } +clone_repo() { + print_section "Клонирование репозитория" + git clone https://github.com/retrilzzy/dotfiles.git "$DOTFILES_DIR" || true +} + +setup_pacman() { + print_section "Настройка Pacman" + + sudo cp /etc/pacman.conf /etc/pacman.conf.bak 2>/dev/null + sudo cp "$DOTFILES_DIR/Configs/etc/pacman.conf" /etc/pacman.conf + + sudo pacman -Syu --noconfirm + + echo -e "${GREEN}Настройка Pacman завершена${RESET}" +} + ensure_yay() { if ! command -v yay &>/dev/null; then print_section "Установка AUR помощника yay" @@ -96,12 +112,6 @@ backup_configs() { echo -e "${GREEN}Бэкап сохранён в $backup_dir${RESET}" } -clone_repo() { - print_section "Клонирование репозитория" - - git clone https://github.com/retrilzzy/dotfiles.git "$DOTFILES_DIR" || true -} - apply_new_configs() { print_section "Применение новых конфигураций" @@ -162,6 +172,10 @@ main() { print_section "Git" install_pacman git + clone_repo + + setup_pacman + ensure_yay print_section "Сетевые инструменты"