Merge pull request #5 from TriMoon/patch-1

Prevent duplicated repo additions.
This commit is contained in:
Jonathan Kirszling 2021-01-13 21:11:53 +01:00 committed by GitHub
commit 042b7a9f41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
init
View file

@ -28,7 +28,10 @@ get_iso_build_date () {
}
init_archzfs () {
if pacman -Sl archzfs >/dev/null 2>&1; then
print "archzfs repo was already added"
return
fi
print "Adding archzfs repo"
pacman -Sy archlinux-keyring --noconfirm &>/dev/null