Take backups of existing pacman.conf + mirrorlist before refreshing

Closes #3479
This commit is contained in:
David Heinemeier Hansson
2025-11-22 11:05:45 +01:00
parent aadb4fae08
commit c86614039e

View File

@@ -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