From e29d5eee5494aff3bfbe3d3bf263d7abaabb2903 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 27 Feb 2024 14:47:18 +0100 Subject: [PATCH] Up. --- .../run_onchange_10-install-packages.sh.tmpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl b/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl index fce2f83..fc18aa8 100644 --- a/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_10-install-packages.sh.tmpl @@ -81,7 +81,7 @@ packages=( ## Install packages packages=(${packages[@]//starship/makedeb}) - packages+=(mist) + packages+=(mist cmake ninja-build pkg-config) for package in ${packages[@]}; do echo "installing ${package}..." @@ -93,7 +93,11 @@ packages=( {{- end }} done - ## curl -sS https://starship.rs/install.sh | sh + {{- if ne .chezmoi.username "root" }} + DEBIAN_FRONTEND=noninteractive sudo -E mist install starship + {{- else }} + DEBIAN_FRONTEND=noninteractive mist install starship + {{- end }} echo -e "\033[0;32m>>>>> Finish Debian/Ubuntu Linux packages installation <<<<<\033[0m"