mirror of
https://github.com/basecamp/omarchy.git
synced 2026-01-09 05:10:54 +08:00
Simplify switching between edge and stable channels
This commit is contained in:
parent
49f33169c1
commit
f6cd5e076d
@ -1,4 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf
|
||||
omarchy-refresh-pacman-mirrorlist
|
||||
|
||||
if [[ $1 == "edge" ]]; then
|
||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
||||
sudo sed -i 's|https://pkgs.omarchy.org/.*$arch|https://pkgs.omarchy.org/edge/$arch|' /etc/pacman.conf
|
||||
echo "Setting mirror and pkgs channel to edge"
|
||||
else
|
||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
||||
sudo sed -i 's|https://pkgs.omarchy.org/.*$arch|https://pkgs.omarchy.org/stable/$arch|' /etc/pacman.conf
|
||||
echo "Setting mirror and pkgs channel to stable"
|
||||
fi
|
||||
|
||||
echo
|
||||
sudo pacman -Syu --noconfirm
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "edge" ]]; then
|
||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
||||
else
|
||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
||||
fi
|
||||
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "edge" ]]; then
|
||||
sudo sed -i 's|https://pkgs.omarchy.org/.*$arch|https://pkgs.omarchy.org/edge/$arch|' /etc/pacman.conf
|
||||
else
|
||||
sudo sed -i 's|https://pkgs.omarchy.org/.*$arch|https://pkgs.omarchy.org/stable/$arch|' /etc/pacman.conf
|
||||
fi
|
||||
@ -1,3 +1,3 @@
|
||||
echo "Use new Omarchy mirror as default"
|
||||
|
||||
omarchy-refresh-pacman-mirrorlist
|
||||
omarchy-refresh-pacman
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
echo "Pull packages from stable Arch mirror"
|
||||
|
||||
omarchy-refresh-pacman-mirrorlist stable
|
||||
sudo pacman -Syu
|
||||
omarchy-refresh-pacman
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user