mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-26 13:29:45 +00:00
d4eacaeab3
* Fix flatpak paths * Refact office suites flatpak * Merge flatpak_app_exists and command_exists * Fix binary path bug * Add apk pgm --------- Co-authored-by: Chris Titus <contact@christitus.com>
25 lines
599 B
Bash
25 lines
599 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
installSlack() {
|
|
if ! command_exists com.slack.Slack && ! command_exists slack; then
|
|
printf "%b\n" "${YELLOW}Installing Slack...${RC}"
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
"$AUR_HELPER" -S --needed --noconfirm slack-desktop
|
|
;;
|
|
*)
|
|
checkFlatpak
|
|
flatpak install -y flathub com.slack.Slack
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Slack is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
checkAURHelper
|
|
installSlack |