mirror of
https://github.com/eoli3n/archiso-zfs.git
synced 2026-04-04 13:57:28 +00: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
1 changed files with 4 additions and 1 deletions
5
init
5
init
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue