mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-02-23 17:37:03 +00:00
As per @Ilj3954 and @adamperkowski request, I'm changing both option and script name to zapzap (which was the original name of the app)
25 lines
650 B
Bash
25 lines
650 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
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)
|
|
"$AUR_HELPER" -S --needed --noconfirm zapzap
|
|
;;
|
|
*)
|
|
. ../setup-flatpak.sh
|
|
flatpak install flathub com.rtosta.zapzap
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}WhatsApp(Zap-Zap by rtosta) is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
installWhatsapp
|