linutil/core/tabs/applications-setup/communication-apps/thunderbird-setup.sh
2024-10-13 11:43:27 +05:30

26 lines
673 B
Bash

#!/bin/sh -e
. ../../common-script.sh
installThunderBird() {
if ! command_exists thunderbird; then
printf "%b\n" "${YELLOW}Installing Thunderbird...${RC}"
case "$PACKAGER" in
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm thunderbird
;;
apk)
"$ESCALATION_TOOL" "$PACKAGER" add thunderbird
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y thunderbird
;;
esac
else
printf "%b\n" "${GREEN}Thunderbird is already installed.${RC}"
fi
}
checkEnv
checkEscalationTool
installThunderBird