linutil/core/tabs/applications-setup/browsers/brave.sh
Angaddeep Singh 7f82c66475
refact(brave-install): simplify script (#980)
* simplifying Brave install

* Update brave.sh

---------

Co-authored-by: Angaddeep Singh <deepangad14@gmail.com>
2025-02-28 14:47:14 -06:00

16 lines
377 B
Bash

#!/bin/sh -e
. ../../common-script.sh
installBrave() {
if ! command_exists com.brave.Browser && ! command_exists brave; then
printf "%b\n" "${YELLOW}Installing Brave...${RC}"
curl -fsS https://dl.brave.com/install.sh | sh
else
printf "%b\n" "${GREEN}Brave Browser is already installed.${RC}"
fi
}
checkEnv
checkEscalationTool
installBrave