diff --git a/lib/installer/managers/pacman.sh b/lib/installer/managers/pacman.sh index 348a4a3..de1a23f 100755 --- a/lib/installer/managers/pacman.sh +++ b/lib/installer/managers/pacman.sh @@ -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"