Up.
This commit is contained in:
parent
c7ee54d45f
commit
5c115f48f5
@ -1,10 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
FULL_PATH_TO_SCRIPT="$(realpath "${BASH_SOURCE[-1]}")"
|
|
||||||
SCRIPT_DIRECTORY="$(dirname "$FULL_PATH_TO_SCRIPT")"
|
|
||||||
|
|
||||||
# include lib
|
# include lib
|
||||||
. ${CHEZMOI_WORKING_TREE}/utils.sh
|
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
|
||||||
|
|
||||||
|
|
||||||
# Packages to install
|
# Packages to install
|
||||||
@ -26,19 +23,21 @@ packages=(
|
|||||||
|
|
||||||
|
|
||||||
## Update system
|
## Update system
|
||||||
inf "updating system..."
|
inf "Updating system..."
|
||||||
sudo pacman -Syu --noconfirm --quiet
|
sudo pacman -Syu --noconfirm --quiet
|
||||||
|
|
||||||
## Install yay
|
## Install yay
|
||||||
if [ ! $(command -v yay) ]; then
|
if [ ! $(command -v yay) ]; then
|
||||||
inf "installing yay..."
|
inf "Installing yay..."
|
||||||
install_binary "yay"
|
install_binary "yay"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Install packages
|
## Install packages
|
||||||
for package in ${packages[@]}; do
|
for package in ${packages[@]}; do
|
||||||
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
||||||
inf "installing ${package}..."
|
inf "Installing ${package}..."
|
||||||
install_binary $package "yay"
|
install_binary $package "yay"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
inf "Packages installed."
|
Loading…
Reference in New Issue
Block a user