1
0
This commit is contained in:
Jeff Lance 2024-02-27 10:58:07 +01:00
parent a16830c702
commit 1eb3408e39

View File

@ -44,7 +44,7 @@ packages=(
## 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
echo "installing packages" echo "installing ${package}..."
{{- if ne .chezmoi.username "root" }} {{- if ne .chezmoi.username "root" }}
sudo yay -S --noconfirm $package sudo yay -S --noconfirm $package
@ -68,7 +68,7 @@ packages=(
DEBIAN_FRONTEND=noninteractive sudo -E apt update DEBIAN_FRONTEND=noninteractive sudo -E apt update
DEBIAN_FRONTEND=noninteractive sudo -E apt upgrade --yes DEBIAN_FRONTEND=noninteractive sudo -E apt upgrade --yes
{{- else }} {{- else }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing gpg DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing gpg
wget -qO - 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null wget -qO - 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | tee /etc/apt/sources.list.d/makedeb.list echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | tee /etc/apt/sources.list.d/makedeb.list
DEBIAN_FRONTEND=noninteractive apt update DEBIAN_FRONTEND=noninteractive apt update
@ -76,16 +76,15 @@ packages=(
{{- end}} {{- end}}
## Install packages ## Install packages
packages+=(makedeb) packages=${packages[@]//starship/makedeb}
packages=${packages[@]//starship}
for package in ${packages[@]}; do for package in ${packages[@]}; do
echo "installing packages" echo "installing ${package}..."
{{- if ne .chezmoi.username "root" }} {{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
{{- else }} {{- else }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing $package
{{- end }} {{- end }}
done done