From 66e33812229d969c4addb5c792b380473ed79d08 Mon Sep 17 00:00:00 2001 From: nakamina Date: Sun, 1 Oct 2023 12:18:47 +0900 Subject: [PATCH] update --- home/.chezmoiscripts/run_once_50-install-misc.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/run_once_50-install-misc.sh b/home/.chezmoiscripts/run_once_50-install-misc.sh index 26ea1ca..b06acfe 100644 --- a/home/.chezmoiscripts/run_once_50-install-misc.sh +++ b/home/.chezmoiscripts/run_once_50-install-misc.sh @@ -46,7 +46,11 @@ function install_brew_packages() { done if [[ ${#missing_packages[@]} -gt 0 ]]; then - brew install --force "${missing_packages[@]}" + if "${CI:-false}"; then + brew info "${missing_packages[@]}" + else + brew install --force "${missing_packages[@]}" + fi fi } @@ -60,7 +64,11 @@ function install_brew_cask_packages() { done if [[ ${#missing_packages[@]} -gt 0 ]]; then - brew install --cask --force "${missing_packages[@]}" + if "${CI:-false}"; then + brew info --cask "${missing_packages[@]}" + else + brew install --cask --force "${missing_packages[@]}" + fi fi }