Removing redundent AUR installs

This commit is contained in:
Luke
2017-10-04 15:09:55 -07:00
parent 55983e6c9f
commit 0a40c3ff55
2 changed files with 32 additions and 5 deletions

18
aurinstall.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
qm=$(pacman -Qm | awk '{print $1}')
instcheck() {
if [[ $qm = *"$1"* ]]; then
echo $1 already installed.
else
aurinstall $1
fi
}
instcheck $1
#for prog in "$@"
#do
#(pacman -Qm | grep $prog ) || echo "not"
#done