mirror of
https://github.com/eoli3n/archiso-zfs.git
synced 2026-01-06 16:50:19 +01:00
remove returns
This commit is contained in:
parent
fbe3a7856d
commit
c6a41b2489
6
init
6
init
|
|
@ -51,10 +51,8 @@ init_archlinux_archive () {
|
|||
repo="Server=https://archive.archlinux.org/repos/$1/\$repo/os/\$arch"
|
||||
pacman -Syy --quiet
|
||||
|
||||
# If repo exists, set it, if not, return False
|
||||
curl -s "$repo" && echo "$repo" > /etc/pacman.d/mirrorlist || return 1
|
||||
|
||||
return 0
|
||||
# If repo exists, set it
|
||||
curl -s "$repo" && echo "$repo" > /etc/pacman.d/mirrorlist
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue