carbs

Cem's Auto Rice Bootstrapping Scripts
git clone git://git.ckyln.com/carbs.git
Log | Files | Refs | README | LICENSE

commit 0739d1d4e94d9263bdbb7e6ea8920083ab399a09
parent dc04a91fb0555a03f38aa7d97faa55876884ba5e
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 26 Sep 2019 11:00:22 +0300

fix yay issues with non-x86_64 and non-aarch64 architectures

Diffstat:
Mcarbs | 15++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/carbs b/carbs @@ -129,12 +129,21 @@ installcsv() {\ } installyay() {\ - sudo pacman -S --noconfirm --needed base-devel + error 'Could not install yay-bin, building from source' + cd /tmp + dir=$(mktemp -d) + cd $dir + curl -Lo $dir/PKGBUILD "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yay" + makepkg --noconfirm --ignore-arch -si || die 'Could not install yay' +} + +installyaybin() {\ + sudo pacman -S --noconfirm --needed base-devel || die 'Could not install base-devel' cd /tmp dir=$(mktemp -d) cd $dir curl -Lo $dir/PKGBUILD "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yay-bin" - makepkg --noconfirm -si || die 'Could not install yay' + makepkg --noconfirm -si || installyay } sudouser() {\ @@ -177,7 +186,7 @@ if [ $interactive = 1 ]; then welcomepage sudo -V >/dev/null 2>&1 || sudouser $USER fi -yay -V >/dev/null 2>&1 || installyay +yay -V >/dev/null 2>&1 || installyaybin installcsv dotfilesinstall $dotfiles nvim -v >/dev/null 2>&1 && neovimconfig || warning 'Not installing nvim plugins'