From c86614039e3184c300cb8cfce5ba139a83eb1656 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 22 Nov 2025 11:05:45 +0100 Subject: [PATCH] Take backups of existing pacman.conf + mirrorlist before refreshing Closes #3479 --- bin/omarchy-refresh-pacman | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/omarchy-refresh-pacman b/bin/omarchy-refresh-pacman index c968a36a..36d9678f 100755 --- a/bin/omarchy-refresh-pacman +++ b/bin/omarchy-refresh-pacman @@ -1,5 +1,9 @@ #!/bin/bash +# Take backup of existing files +sudo cp -f /etc/pacman.conf /etc/pacman.conf.bak +sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak + sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf if [[ $1 == "edge" ]]; then