2024-09-30 03:14:40 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
. ../../common-script.sh
|
|
|
|
|
|
|
|
installWaterfox() {
|
2024-09-30 05:04:33 +01:00
|
|
|
if ! command_exists waterfox; then
|
2024-09-30 04:59:05 +01:00
|
|
|
printf "%b\n" "${YELLOW}Installing waterfox...${RC}"
|
|
|
|
case "$PACKAGER" in
|
|
|
|
pacman)
|
2024-09-30 05:41:55 +01:00
|
|
|
"$AUR_HELPER" -S --needed --noconfirm waterfox-bin
|
2024-09-30 04:59:05 +01:00
|
|
|
;;
|
|
|
|
*)
|
2024-09-30 05:41:55 +01:00
|
|
|
. ./setup-flatpak.sh
|
|
|
|
flatpak install -y flathub net.waterfox.waterfox
|
2024-09-30 04:59:05 +01:00
|
|
|
;;
|
|
|
|
esac
|
2024-09-30 03:14:40 +01:00
|
|
|
else
|
2024-09-30 05:31:44 +01:00
|
|
|
printf "%b\n" "${GREEN}Waterfox is already installed.${RC}"
|
2024-09-30 03:14:40 +01:00
|
|
|
fi
|
|
|
|
}
|
2024-09-30 04:05:07 +01:00
|
|
|
|
2024-09-30 04:08:12 +01:00
|
|
|
checkEnv
|
|
|
|
checkEscalationTool
|
2024-09-30 05:31:44 +01:00
|
|
|
checkAURHelper
|
2024-09-30 04:05:07 +01:00
|
|
|
installWaterfox
|