mirror of
https://github.com/eoli3n/archiso-zfs.git
synced 2026-04-18 12:43:42 +00:00
funny workaround for 2022/02/01
This commit is contained in:
parent
cb58ca61bd
commit
c4d06af8ab
1 changed files with 9 additions and 1 deletions
10
init
10
init
|
|
@ -51,8 +51,16 @@ init_archlinux_archive () {
|
|||
# $1 is date formated as 'YYYY/MM/DD'
|
||||
# Returns False if repo does not exists
|
||||
|
||||
# Archlinux Archive workaround for 2022/02/01
|
||||
if [[ "$1" == "2022/02/01" ]]
|
||||
then
|
||||
version="2022/02/02"
|
||||
else
|
||||
version="$1"
|
||||
fi
|
||||
|
||||
# Set repo
|
||||
repo="https://archive.archlinux.org/repos/$1/"
|
||||
repo="https://archive.archlinux.org/repos/$version/"
|
||||
|
||||
# If repo exists, set it
|
||||
curl -s "$repo" &>/dev/null && echo "Server=$repo\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue