From 5bf0cd7267c5f27d78e2ad5941901f010bdc6ba7 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 1 Aug 2023 13:20:05 +0200 Subject: [PATCH] Always sync and update before installing --- install_gui.sh | 3 +++ install_root.sh | 3 +++ install_user.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/install_gui.sh b/install_gui.sh index b2e28cf..ef5e5eb 100755 --- a/install_gui.sh +++ b/install_gui.sh @@ -46,6 +46,9 @@ cp -ra home/.config/swayidle ~/.config cp -ra home/.config/swaylock ~/.config cp -ra home/.config/wofi ~/.config +# Sync mirrors and update before other installations +yay -Syu --noconfirm + # Instal fonts yay -S --noconfirm --needed \ libxft ttf-hack ttf-joypixels noto-fonts noto-fonts-cjk noto-fonts-emoji ttf-font-awesome \ diff --git a/install_root.sh b/install_root.sh index 08b1b1a..7782734 100755 --- a/install_root.sh +++ b/install_root.sh @@ -17,6 +17,9 @@ fi # cd into the dotfiles dir, no matter where the script was called from pushd "$(dirname "$0")" +# Sync mirrors and update before other installations +pacman -Syu --noconfirm + # Install essential packages pacman -Syu --noconfirm --needed \ networkmanager neovim sudo reflector pacman-contrib man-db man-pages rsync btop bind tldr base-devel git pkgfile diff --git a/install_user.sh b/install_user.sh index e26e316..85c9bfe 100755 --- a/install_user.sh +++ b/install_user.sh @@ -30,6 +30,9 @@ makepkg -si popd rm -rf ~/yay +# Sync mirrors and update before other installations +yay -Syu --noconfirm + # Install some useful packages yay -S --noconfirm --needed \ openssh cronie exa bat dust mlocate lshw trash-cli ncdu btop \