Compare commits

..

1 Commits

Author SHA1 Message Date
Harsh Vyapari
724b223f70
Merge 4671a8c12e into 79eb752552 2024-10-16 04:56:39 +00:00

View File

@ -4,20 +4,26 @@
installWhatsapp() { installWhatsapp() {
printf "%b\n" "${YELLOW}The app we are installing is Zap-Zap, an Open Source Desktop Client for Linux${RC}" 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 case "$PACKAGER" in
printf "%b\n" "${YELLOW}Installing Whatsapp(Zap-Zap by rtosta)${RC}" pacman)
case "$PACKAGER" in if ! command_exists zapzap; then
pacman) printf "%b\n" "${YELLOW}Installing Whatsapp(Zap-Zap by rtosta) AUR PACKAGE${RC}"
"$AUR_HELPER" -S --needed --noconfirm zapzap "$AUR_HELPER" -S --needed --noconfirm zapzap
;; printf "%b\n" "${GREEN}WhatsApp(Zap-Zap by rtosta) is installed. Search ZapZap to start WhatsApp${RC}"
*) return
. ../setup-flatpak.sh else
flatpak install flathub com.rtosta.zapzap printf "%b\n" "${GREEN}Whatsapp(Zap-Zap by rtosta) is already installed${RC}"
;; return
esac fi
else ;;
printf "%b\n" "${GREEN}WhatsApp(Zap-Zap by rtosta) is already installed.${RC}" *)
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
} }
checkEnv checkEnv