mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Don't add this twice on rerunning either
This commit is contained in:
@ -10,7 +10,9 @@ if [[ "$(uname -m)" == "x86_64" ]] && ! command -v yay &>/dev/null; then
|
|||||||
sudo pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'; then
|
sudo pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'; then
|
||||||
|
|
||||||
# Add Chaotic-AUR repo to pacman config
|
# Add Chaotic-AUR repo to pacman config
|
||||||
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
|
if ! grep -q "chaotic-aur" /etc/pacman.conf; then
|
||||||
|
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
# Install yay directly from Chaotic-AUR
|
# Install yay directly from Chaotic-AUR
|
||||||
sudo pacman -Sy --needed --noconfirm yay
|
sudo pacman -Sy --needed --noconfirm yay
|
||||||
|
Reference in New Issue
Block a user