mirror of
https://github.com/eoli3n/archiso-zfs.git
synced 2026-04-21 06:03:42 +00:00
Merge pull request #5 from TriMoon/patch-1
Prevent duplicated repo additions.
This commit is contained in:
commit
042b7a9f41
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