2024-10-31 18:04:55 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
. ../../common-script.sh
|
|
|
|
|
|
|
|
installWaterfox() {
|
2024-11-07 19:03:21 +00:00
|
|
|
if ! command_exists net.waterfox.waterfox && ! command_exists waterfox; then
|
2024-10-31 18:04:55 +00:00
|
|
|
printf "%b\n" "${YELLOW}Installing waterfox...${RC}"
|
|
|
|
case "$PACKAGER" in
|
|
|
|
pacman)
|
2024-11-07 19:03:21 +00:00
|
|
|
"$AUR_HELPER" -S --needed --noconfirm waterfox-bin
|
2024-10-31 18:04:55 +00:00
|
|
|
;;
|
|
|
|
*)
|
2024-11-07 19:03:21 +00:00
|
|
|
checkFlatpak
|
2024-10-31 18:04:55 +00:00
|
|
|
flatpak install -y flathub net.waterfox.waterfox
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
printf "%b\n" "${GREEN}Waterfox is already installed.${RC}"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
checkEnv
|
|
|
|
checkEscalationTool
|
|
|
|
checkAURHelper
|
|
|
|
installWaterfox
|