PortValhalla/scripts/PopOS/software/brave.sh

16 lines
594 B
Bash
Raw Normal View History

2022-11-12 02:34:44 +00:00
#!/bin/bash
2022-11-12 02:45:23 +00:00
# Elevate script
2022-11-12 02:34:44 +00:00
if [ ! "$UID" -eq 0 ]
then
2022-11-13 00:11:32 +00:00
sudo bash "$BASH_SOURCE"
else
# Prepare
apt install -y wget unzip jq apt-transport-https curl
curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | tee /etc/apt/sources.list.d/brave-browser-release.list
2022-11-12 02:34:44 +00:00
2022-11-13 00:11:32 +00:00
# Install Brave
apt update
apt install -y brave-browser
fi