30 lines
710 B
Bash
Executable File
30 lines
710 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -f "/etc/arch-release" ]; then
|
|
#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"
|
|
|
|
PackageManagerOutputDevice="/dev/stdout"
|
|
|
|
PackageManagerLog="/tmp/lib_package_manager.log"
|
|
|
|
unprep_package_manager() {
|
|
echo "Nothing to unprepare." >$PackageManagerOutputDevice
|
|
}
|
|
|
|
prep_package_manager() {
|
|
echo "Nothing to prepare." >$PackageManagerOutputDevice
|
|
}
|
|
fi
|
|
|
|
# FLUXSCRIPT END
|