mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
Update core/tabs/applications-setup/communication-apps/whatsapp-setup.sh
Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com>
This commit is contained in:
parent
4671a8c12e
commit
09aea49b2c
|
@ -4,26 +4,20 @@
|
|||
|
||||
installWhatsapp() {
|
||||
printf "%b\n" "${YELLOW}The app we are installing is Zap-Zap, an Open Source Desktop Client for Linux${RC}"
|
||||
if ! command_exists com.rtosta.zapzap && ! command_exists zapzap; then
|
||||
printf "%b\n" "${YELLOW}Installing Whatsapp(Zap-Zap by rtosta)${RC}"
|
||||
case "$PACKAGER" in
|
||||
pacman)
|
||||
if ! command_exists zapzap; then
|
||||
printf "%b\n" "${YELLOW}Installing Whatsapp(Zap-Zap by rtosta) AUR PACKAGE${RC}"
|
||||
"$AUR_HELPER" -S --needed --noconfirm zapzap
|
||||
printf "%b\n" "${GREEN}WhatsApp(Zap-Zap by rtosta) is installed. Search ZapZap to start WhatsApp${RC}"
|
||||
return
|
||||
else
|
||||
printf "%b\n" "${GREEN}Whatsapp(Zap-Zap by rtosta) is already installed${RC}"
|
||||
return
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
. ../setup-flatpak.sh
|
||||
printf "%b\n" "${YELLOW} Installing Whatsapp(Zap-Zap by rtosta) Flatpak ${RC}"
|
||||
flatpak install flathub com.rtosta.zapzap
|
||||
printf "%b\n" "${GREEN}WhatsApp(Zap-Zap by rtosta) is installed. Search ZapZap to start WhatsApp${RC}"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
else
|
||||
printf "%b\n" "${GREEN}WhatsApp(Zap-Zap by rtosta) is already installed.${RC}"
|
||||
fi
|
||||
}
|
||||
|
||||
checkEnv
|
||||
|
|
Loading…
Reference in New Issue
Block a user