mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-06 13:39:41 +00:00
53cbb4b733
* Fix package managers * Update core/tabs/applications-setup/Developer-tools/githubdesktop-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/Developer-tools/vscodium-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/Developer-tools/sublime-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/Developer-tools/vscode-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update core/tabs/applications-setup/browser-setup.sh Co-authored-by: Adam Perkowski <adas1per@protonmail.com> --------- Co-authored-by: Chris Titus <contact@christitus.com> Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
23 lines
578 B
Bash
23 lines
578 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
installTelegram() {
|
|
if ! command_exists telegram-desktop; then
|
|
printf "%b\n" "${YELLOW}Installing Telegram...${RC}"
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm telegram-desktop
|
|
;;
|
|
*)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y telegram-desktop
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Telegram is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installTelegram |