arch/pkg/de-p1st-pacman-mirrorlist/pacman.conf.holoscript

8 lines
341 B
Plaintext
Raw Normal View History

2021-04-22 16:02:02 +02:00
#!/bin/sh
# stdin: default config
# stdout: modified config
# replace all occurrences of "mirrorlist" with "de-p1st-mirrorlist"
2021-04-22 16:08:28 +02:00
sed 's|^Include\s*=\s*/etc/pacman.d/mirrorlist$|Include = /etc/pacman.d/de-p1st-mirrorlist|' || exit
sed 's|^#\s*Include\s*=\s*/etc/pacman.d/mirrorlist$|#Include = /etc/pacman.d/de-p1st-mirrorlist|' || exit