diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-02-04 02:30:01 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-02-04 02:30:01 +0100 |
| commit | 8c5f578ea2b7f920444aa399cf397915ef63cd88 (patch) | |
| tree | bf8771d880d08ae997e483a76cb2a2fc2661e98b /yay/install.sh | |
| parent | 6f41f3b117824bc62d912d888a1b1603f6ecc566 (diff) | |
.
Diffstat (limited to 'yay/install.sh')
| -rwxr-xr-x | yay/install.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yay/install.sh b/yay/install.sh new file mode 100755 index 0000000..ce300af --- /dev/null +++ b/yay/install.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if ! (which yay > /dev/null); then + cd $(dirname "$0") + sudo pacman -S --needed --noconfirm git base-devel + git clone https://aur.archlinux.org/yay.git + cd yay + makepkg -si +fi + +yay -S --needed --noconfirm \ + $(cat ~/.dotfiles/yay/packages.txt | \ + xargs -I{} sh -c \ + "(pacman -Q {} &> /dev/null) || echo {}") |
