fluxion/lib/installer/managers/pacman.sh

30 lines
728 B
Bash
Raw Normal View History

#!/bin/bash
if [ -f "/etc/arch-release" ]; then
2017-12-31 09:02:12 -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
PackageManagerCLT='pacman'
PackageManagerCLTInstallOptions="-S --noconfirm"
PackageManagerCLTRemoveOptions="-Rs"
2017-12-31 09:02:12 -07:00
PackageManagerOutputDevice="/dev/stdout"
2017-12-31 09:02:12 -07:00
PackageManagerLog="/tmp/lib_package_manager.log"
2017-12-31 09:02:12 -07:00
function unprep_package_manager() {
echo "Nothing to unprepare." >$PackageManagerOutputDevice
}
2017-12-31 09:02:12 -07:00
function prep_package_manager() {
echo "Nothing to prepare." >$PackageManagerOutputDevice
}
fi
# FLUXSCRIPT END