Added support for pacaur,yaourt

This commit is contained in:
Hritik Vijay 2017-11-27 13:26:08 +05:30
parent b1f342af37
commit 755b3047c9
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,15 @@
#!/bin/bash
if [ -f "/etc/arch-release" ]; then
PackageManagerCLT="pacman"
#Last entry is the default package manager to use (pacman)
AurHelpers="pacaur yaourt pacman"
for AurHelper in $AurHelpers; do
if [ "`pacman -Qs $AurHelper`" ]; then
PackageManagerCLT=$AurHelper
break;
fi
done
PackageManagerCLTInstallOptions="-S"
PackageManagerCLTRemoveOptions="-Rs"