#!/usr/bin/env bash

module_description() { printf "Install Brave Browser\n"; }
module_required() { return 1; }
module_should_skip() { return 1; }
module_prereqs() { return 0; }

module_main() {
  log_info "Installing Brave Browser..."

  if pacman -Si brave-browser >/dev/null 2>&1; then
    install_pacman brave-browser
  elif pacman -Si brave-bin >/dev/null 2>&1; then
    install_pacman brave-bin
  else
    install_aur brave-bin
  fi
}
