mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-06 13:39:41 +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>
25 lines
586 B
Bash
25 lines
586 B
Bash
#!/bin/sh -e
|
|
|
|
. ../common-script.sh
|
|
|
|
installWpsOffice() {
|
|
if ! command_exists com.wps.Office; then
|
|
printf "%b\n" "${YELLOW}Installing WPS Office...${RC}"
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
"$AUR_HELPER" -S --needed --noconfirm wps-office
|
|
;;
|
|
*)
|
|
. ./setup-flatpak.sh
|
|
flatpak install flathub com.wps.Office
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}WPS Office is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
checkAurHelper
|
|
installWpsOffice |