mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-27 05:49:45 +00:00
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
|