mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-25 12:59:45 +00:00
4d2c2d3ab7
* Separate the office suites and pdf suites * add --needed * move 2 scripts over to pdf-suites * fix hanging data entry * alphabetically sort entries * address carters concerns * fix compilation errors --------- Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
31 lines
888 B
Bash
31 lines
888 B
Bash
#!/bin/sh -e
|
|
|
|
. ../common-script.sh
|
|
|
|
installLibreOffice() {
|
|
if ! command_exists libreoffice; then
|
|
printf "%b\n" "${YELLOW}Installing Libre Office...${RC}"
|
|
case "$PACKAGER" in
|
|
apt-get|nala)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y libreoffice-core
|
|
;;
|
|
zypper|dnf)
|
|
. ./setup-flatpak.sh
|
|
flatpak install -y flathub org.libreoffice.LibreOffice
|
|
;;
|
|
pacman)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm libreoffice-fresh
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Libre Office is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installLibreOffice |