mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Simplify switching between edge and stable channels
This commit is contained in:
@@ -1,4 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf
|
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"
|
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"
|
echo "Pull packages from stable Arch mirror"
|
||||||
|
|
||||||
omarchy-refresh-pacman-mirrorlist stable
|
omarchy-refresh-pacman
|
||||||
sudo pacman -Syu
|
|
||||||
|
|||||||
Reference in New Issue
Block a user