remove duplicate code

This commit is contained in:
askiiart 2024-11-27 22:39:49 -06:00
parent 6b09d9084c
commit 528948d9b6

View file

@ -1,11 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo '
[askiiart]
SigLevel = Optional
Server = https://askiiart.net/repos/archlinux/$arch' | sudo tee -a /etc/pacman.conf
sudo pacman -Syu --noconfirm --needed
prep() { prep() {
sudo mkdir /var/log/makepkg/ sudo mkdir /var/log/makepkg/
sudo chown builder /var/log/makepkg/ sudo chown builder /var/log/makepkg/
@ -19,7 +12,7 @@ Include = /etc/pacman.d/mirrorlist
[askiiart] [askiiart]
Server = https://askiiart.net/repos/archlinux/$arch Server = https://askiiart.net/repos/archlinux/$arch
SigLevel = Optional' | sudo tee -a /etc/pacman.conf SigLevel = Optional' | sudo tee -a /etc/pacman.conf
sudo pacman -Sy sudo pacman -Syu
mkdir /tmp/arch-workdir/ mkdir /tmp/arch-workdir/
chmod -R 777 /tmp/arch-workdir/ chmod -R 777 /tmp/arch-workdir/
} }