mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
fixed things
This commit is contained in:
parent
8bfd5367fb
commit
c0728e1b10
|
@ -8,28 +8,20 @@ installWaterfox() {
|
||||||
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
|
||||||
apt-get|nala)
|
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y curl && printf "$buildWaterfox"
|
|
||||||
;;
|
|
||||||
zypper)
|
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install curl && printf "$buildWaterfox"
|
|
||||||
;;
|
|
||||||
pacman)
|
pacman)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm curl && printf "$buildWaterfox"
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm curl && printf "$buildWaterfox"
|
||||||
;;
|
;;
|
||||||
dnf)
|
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y curl && printf "$buildWaterfox"
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
printf "%b\n" "${GREEN}Waterfox Browser is already installed.${RC}"
|
printf "%b\n" "${GREEN}Waterfox is already installed.${RC}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
checkEnv
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
|
checkAURHelper
|
||||||
installWaterfox
|
installWaterfox
|
||||||
|
|
Loading…
Reference in New Issue
Block a user