mirror of
https://github.com/eoli3n/archiso-zfs.git
synced 2025-12-06 07:02:00 +01:00
Prevent duplicated repo additions.
When the script gets run multiple times, it keeps adding the repo to `/etc/pacman.conf`. This fixes that bug.
This commit is contained in:
parent
809dc217a0
commit
97db23db98
5
init
5
init
|
|
@ -28,7 +28,10 @@ get_iso_build_date () {
|
||||||
}
|
}
|
||||||
|
|
||||||
init_archzfs () {
|
init_archzfs () {
|
||||||
|
if pacman -Sl archzfs >/dev/null 2>&1; then
|
||||||
|
print "archzfs repo was already added"
|
||||||
|
return
|
||||||
|
fi
|
||||||
print "Adding archzfs repo"
|
print "Adding archzfs repo"
|
||||||
|
|
||||||
pacman -Sy archlinux-keyring --noconfirm &>/dev/null
|
pacman -Sy archlinux-keyring --noconfirm &>/dev/null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue