2017-08-20 21:58:45 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-08-21 21:56:41 -06:00
|
|
|
if [ -f "/etc/arch-release" ]; then
|
2017-11-27 00:56:08 -07:00
|
|
|
#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
|
2017-11-27 01:17:41 -07:00
|
|
|
PackageManagerCLT='pacman'
|
|
|
|
PackageManagerCLTInstallOptions="-S --noconfirm"
|
2017-08-20 21:58:45 -06:00
|
|
|
PackageManagerCLTRemoveOptions="-Rs"
|
|
|
|
|
|
|
|
PackageManagerOutputDevice="/dev/stdout"
|
|
|
|
|
2017-08-21 21:56:41 -06:00
|
|
|
PackageManagerLog="/tmp/lib_package_manager.log"
|
|
|
|
|
2017-08-20 21:58:45 -06:00
|
|
|
function unprep_package_manager() {
|
|
|
|
echo "Nothing to unprepare." > $PackageManagerOutputDevice
|
|
|
|
}
|
|
|
|
|
|
|
|
function prep_package_manager() {
|
|
|
|
echo "Nothing to prepare." > $PackageManagerOutputDevice
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# FLUXSCRIPT END
|