mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-27 22:09:45 +00:00
24 lines
488 B
Bash
24 lines
488 B
Bash
|
#!/bin/sh -e
|
||
|
|
||
|
. ../../common-script.sh
|
||
|
|
||
|
installZapZap() {
|
||
|
if ! command_exists com.rtosta.zapzap && ! command_exists zapzap; then
|
||
|
printf "%b\n" "${YELLOW}Installing Zap-Zap...${RC}"
|
||
|
case "$PACKAGER" in
|
||
|
pacman)
|
||
|
"$AUR_HELPER" -S --needed --noconfirm zapzap
|
||
|
;;
|
||
|
*)
|
||
|
checkFlatpak
|
||
|
flatpak install flathub com.rtosta.zapzap
|
||
|
;;
|
||
|
esac
|
||
|
else
|
||
|
printf "%b\n" "${GREEN}Zap-Zap is already installed.${RC}"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
checkEnv
|
||
|
installZapZap
|