remove returns

This commit is contained in:
eoli3n 2020-05-06 13:20:33 +02:00
parent fbe3a7856d
commit c6a41b2489

6
init
View file

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