From 8af198ccd927cc1d70fe888eab8085f1567ad928 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Tue, 5 Jun 2018 01:11:59 +0200 Subject: [PATCH] Update yaourt install --- updates/menu | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/updates/menu b/updates/menu index 4123040..113ec02 100644 --- a/updates/menu +++ b/updates/menu @@ -71,12 +71,14 @@ checkaurdependencies(){ echo "aurbuilder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/aurbuilder echo "root ALL=(aurbuilder) NOPASSWD: ALL" >> /etc/sudoers.d/aurbuilder fi - mkdir /tmp/aurbuilder - chmod 777 /tmp/aurbuilder - cd /tmp/aurbuilder - sudo -u aurbuilder git clone https://aur.archlinux.org/package-query.git - cd package-query - sudo -u aurbuilder makepkg -si + if [ ! -f /usr/bin/package-query ]; then + mkdir /tmp/aurbuilder + chmod 777 /tmp/aurbuilder + cd /tmp/aurbuilder + sudo -u aurbuilder git clone https://aur.archlinux.org/package-query.git + cd package-query + sudo -u aurbuilder makepkg -si + fi } checkarchlinuxfrrepo(){ if [ ! $(cat /etc/pacman.conf | grep "archlinuxfr") ]; then