From fc88131bbae74951ac6a815a35c73f585619acb0 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:37:43 -0400 Subject: [PATCH] Added comments --- ...nchange_before_10-install-darwin-dependencies.sh.tmpl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_before_10-install-darwin-dependencies.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_before_10-install-darwin-dependencies.sh.tmpl index 2272b593..e524cf61 100644 --- a/home/.chezmoiscripts/universal/run_onchange_before_10-install-darwin-dependencies.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_before_10-install-darwin-dependencies.sh.tmpl @@ -10,12 +10,15 @@ {{ includeTemplate "universal/profile-before" }} {{ includeTemplate "universal/logg-before" }} -export VOLTA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/volta" -export PATH="$VOLTA_HOME/bin:$PATH" - ### Ensure system is macOS if [ -d /Applications ] && [ -d /System ]; then + ### Ensure environment variables are appropriately configured + export VOLTA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/volta" + export PATH="$VOLTA_HOME/bin:$PATH" + + ### Check for presence of Homebrew if command -v brew > /dev/null; then + ### Install base dependencies logg 'Installing base dependencies for macOS using `brew bundle`' logg info 'Dependencies: age asdf jq node glow go go-task/tap/go-task gnupg gum m-cli progress volta yq m-cli yq zx' logg info 'GNU compatibility dependencies: coreutils findutils'