mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-27 05:49:45 +00:00
17d486818e
Co-authored-by: Jeevitha Kannan K S <ksjeevithakannan123@gmail.com>
30 lines
779 B
Bash
Executable File
30 lines
779 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
installZenBrowser() {
|
|
if ! command_exists io.github.zen_browser.zen && ! command_exists zen-browser; then
|
|
printf "%b\n" "${YELLOW}Installing Zen Browser...${RC}"
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
if grep -q avx2 /proc/cpuinfo; then
|
|
"$AUR_HELPER" -S --needed --noconfirm zen-browser-avx2-bin
|
|
else
|
|
"$AUR_HELPER" -S --needed --noconfirm zen-browser-bin
|
|
fi
|
|
;;
|
|
*)
|
|
checkFlatpak
|
|
flatpak install -y flathub io.github.zen_browser.zen
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Zen Browser is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
checkAURHelper
|
|
installZenBrowser
|