mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-03-04 05:47:12 +00:00
* simplifying Brave install * Update brave.sh --------- Co-authored-by: Angaddeep Singh <deepangad14@gmail.com>
16 lines
377 B
Bash
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 |