linutil/core/tabs/applications-setup/communication-apps/slack-setup.sh

25 lines
572 B
Bash

#!/bin/sh -e
. ../../common-script.sh
installSlack() {
if ! command_exists slack; then
printf "%b\n" "${YELLOW}Installing Slack...${RC}"
case "$PACKAGER" in
pacman)
"$AUR_HELPER" -S --needed --noconfirm slack-desktop
;;
*)
. ../setup-flatpak.sh
flatpak install -y flathub com.slack.Slack
;;
esac
else
printf "%b\n" "${GREEN}Slack is already installed.${RC}"
fi
}
checkEnv
checkEscalationTool
checkAURHelper
installSlack