2018-05-02 12:50:31 -06:00
|
|
|
#!/usr/bin/env bash
|
2017-08-20 21:58:45 -06:00
|
|
|
|
2017-08-21 21:56:41 -06:00
|
|
|
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-08-20 21:58:45 -06:00
|
|
|
|
2017-12-31 09:02:12 -07:00
|
|
|
PackageManagerOutputDevice="/dev/stdout"
|
2017-08-20 21:58:45 -06:00
|
|
|
|
2017-12-31 09:02:12 -07:00
|
|
|
PackageManagerLog="/tmp/lib_package_manager.log"
|
2017-08-21 21:56:41 -06:00
|
|
|
|
2018-03-13 15:01:28 -06:00
|
|
|
unprep_package_manager() {
|
2017-12-31 09:02:12 -07:00
|
|
|
echo "Nothing to unprepare." >$PackageManagerOutputDevice
|
|
|
|
}
|
2017-08-20 21:58:45 -06:00
|
|
|
|
2018-03-13 15:01:28 -06:00
|
|
|
prep_package_manager() {
|
2017-12-31 09:02:12 -07:00
|
|
|
echo "Nothing to prepare." >$PackageManagerOutputDevice
|
|
|
|
}
|
2017-08-20 21:58:45 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
# FLUXSCRIPT END
|