mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
fixed things
This commit is contained in:
parent
c0728e1b10
commit
f2526b048e
|
@ -3,17 +3,15 @@
|
||||||
. ../../common-script.sh
|
. ../../common-script.sh
|
||||||
|
|
||||||
installWaterfox() {
|
installWaterfox() {
|
||||||
buildWaterfox=$(curl -L -o waterfox.tar.bz2 "https://cdn1.waterfox.net/waterfox/releases/latest/linux" && tar -xvjf waterfox.tar.bz2 -C ./ && rm waterfox.tar.bz2 ; sudo mkdir -p /opt/waterfox && sudo mv waterfox /opt/waterfox && cd /opt/waterfox/waterfox && sudo ln -s /opt/waterfox/waterfox/waterfox /usr/bin/waterfox)
|
|
||||||
|
|
||||||
if ! command_exists waterfox; then
|
if ! command_exists waterfox; then
|
||||||
printf "%b\n" "${YELLOW}Installing waterfox...${RC}"
|
printf "%b\n" "${YELLOW}Installing waterfox...${RC}"
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
pacman)
|
pacman)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm curl && printf "$buildWaterfox"
|
"$AUR_HELPER" -S --needed --noconfirm waterfox-bin
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
. ./setup-flatpak.sh
|
||||||
exit 1
|
flatpak install -y flathub net.waterfox.waterfox
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user