summaryrefslogtreecommitdiff
path: root/gohan.sh
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-06-18 22:11:50 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-06-18 22:11:50 +0100
commitee6da41bea7937de749b27e25bea3392ee313e3d (patch)
tree67f92e2cd62c3042ac3768c100261194c5b5ec83 /gohan.sh
parent2dd70d8fc8be7ea5c3ffc6deea05c50fea2ab692 (diff)
Install brave-bin
Diffstat (limited to 'gohan.sh')
-rw-r--r--gohan.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/gohan.sh b/gohan.sh
index 42cb4df..7d92496 100644
--- a/gohan.sh
+++ b/gohan.sh
@@ -85,6 +85,7 @@ install_software() {
n=$((n+1))
echo "$comment" | grep "^\".*\"$" >/dev/null 2>&1 && comment="$(echo "$comment" | sed "s/\(^\"\|\"$\)//g")"
case "$tag" in
+ "A") install_from_aur "$program" "$comment" ;;
"G") install_from_github "$program" "$comment" ;;
*) install_package "$program" "$comment" ;;
esac
@@ -96,6 +97,11 @@ install_package() {
install_from_pacman "$1"
}
+install_from_aur() {
+ dialog --title "GOHAN Installation" --infobox "Installing \`$1\` ($n of $total) from the AUR. $1 $2" 5 70
+ sudo -u "$name" yay -S --noconfirm "$1" >/dev/null 2>&1
+}
+
install_from_github() {
progname="$(basename "$1" .git)"
repodir="/home/$name/.local/src"