#!/bin/bash # # Trashman installer for debian systems. # # Parameters SHARE="$1" LIB="$2" REQUIREMENTS="curl apt-transport-https" # Include basic functions . $LIB/trashman/functions || exit 1 . $LIB/trashman/debian || exit 1 DISTRO="`trashman_distro`" APP="brave-browser" # Requirements trashman_apt_install $REQUIREMENTS # Install pubkey #curl -fsSLo /usr/share/keyrings/$APP-archive-keyring.gpg https://$APP-apt-release.s3.brave.com/$APP-archive-keyring.gpg trashman_install_apt_key $SHARE/$APP/unix/linux/$DISTRO/pubkey.gpg \ $APP-archive-keyring.gpg \ /usr/share/keyrings/$APP-archive-keyring.gpg # Create sources.list entry echo "deb [signed-by=/usr/share/keyrings/$APP-archive-keyring.gpg] https://$APP-apt-release.s3.brave.com/ stable main" | \ tee /etc/apt/sources.list.d/$APP-release.list # Update and install trashman_apt_install $APP || exit 1 # Done trashman_run_with $APP