From 3231f2d2e4356b80ef3fd85773e123268edb6a81 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Tue, 28 May 2024 01:39:12 +0300 Subject: [PATCH] template fix --- run_onchange_after_install_main_deps.sh.tmpl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/run_onchange_after_install_main_deps.sh.tmpl b/run_onchange_after_install_main_deps.sh.tmpl index b872669..fe37b64 100644 --- a/run_onchange_after_install_main_deps.sh.tmpl +++ b/run_onchange_after_install_main_deps.sh.tmpl @@ -114,8 +114,10 @@ LINES=$(tput lines) print_block new_line "Update caches and upgrade packages" -{{ if eq .chezmoi.os "freebsd" }} -sudo pkg update +{{ if eq .chezmoi.os "freebsd" -}} + + sudo pkg update + {{ else if eq .chezmoi.os "darwin" -}} if ! type brew; then bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2>&1|pad @@ -137,8 +139,10 @@ sudo pkg update new_line "Install base packages" -{{ if eq .chezmoi.os "freebsd" }} -sudo pkg install --yes $BASE_PACKAGES +{{ if eq .chezmoi.os "freebsd" -}} + + sudo pkg install --yes $BASE_PACKAGES + {{ else if eq .chezmoi.os "darwin" -}} brew install -q $BASE_PACKAGES python pipx 2>&1|pad