Simplify getting dependencies
This commit is contained in:
12
arch_update
12
arch_update
@@ -7,22 +7,16 @@ BACKUP_LIMIT=3
|
||||
|
||||
# Check dependencies
|
||||
echo -e '\nInstalling dependencies ...' >&2
|
||||
! which curl >/dev/null 2>&1 && sudo pacman -Syu curl
|
||||
! which git >/dev/null 2>&1 && sudo pacman -Syu git
|
||||
if ! which vim >/dev/null 2>&1; then
|
||||
sudo pacman -Syu neovim
|
||||
sudo ln -s /usr/bin/nvim /usr/local/bin/vim
|
||||
fi
|
||||
! which rankmirrors >/dev/null 2>&1 && sudo pacman -Syu pacman-contrib
|
||||
if ! which yay >/dev/null 2>&1; then
|
||||
sudo pacman -Syu
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
cd yay
|
||||
makepkg -cirs
|
||||
cd ..
|
||||
rm -fr yay
|
||||
fi
|
||||
! which yaycache >/dev/null 2>&1 && yay -Syu yaycache
|
||||
yay -Syu --needed curl git neovim pacman-contrib yaycache
|
||||
[ ! -e /usr/local/bin/vim ] && sudo ln -s /usr/bin/nvim /usr/local/bin/vim
|
||||
|
||||
# Backup system
|
||||
if which btrfs >/dev/null; then
|
||||
yay -Syu --needed snapper
|
||||
|
||||
Reference in New Issue
Block a user