From 93df72ef165e6831e70268a6ed9088cffc70536b Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 14 Feb 2020 16:37:42 +0100 Subject: [PATCH] fix installer on archlinux --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index db497e8..fa4b2a8 100755 --- a/install.sh +++ b/install.sh @@ -137,6 +137,7 @@ function brethil_dotfiles_setup { # mtr: mytraceroute, traceroute tool # pv: pipe view, monitor the progress of data through a pipe # byobu: tmux wrapper + # htop: like top, but bettah packages="zsh git grc ccze bmon mtr pv tmux byobu htop" # Check if running as root, if try using sudo to install packages. @@ -164,8 +165,9 @@ function brethil_dotfiles_setup { if [[ $(which apt-get ) ]]; then install_command="${sudo}apt-get install" elif [[ $(which pacman) ]]; then - packages="$packages yay" # also install the yay aur package manager - install_command="${sudo}pacman -Sy" + pacman -Sy yay # also install the yay aur package managery + packages="$packages" + install_command="${sudo}yay -Sy" elif [[ $(which yum) ]]; then install_command="${sudo}yum" elif [[ $(which port) ]]; then