From 13cd84422a139d778a34a7c03b0105a567ce5fa1 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Wed, 14 Jun 2023 06:02:23 +0000 Subject: [PATCH] Latest --- ...omebrew.sh.tmpl => run_before_01-system-homebrew.sh.tmpl} | 5 +++++ home/.chezmoitemplates/{ssh => darwin}/ssh-lab | 0 2 files changed, 5 insertions(+) rename home/.chezmoiscripts/universal/{run_before_01-install-homebrew.sh.tmpl => run_before_01-system-homebrew.sh.tmpl} (94%) rename home/.chezmoitemplates/{ssh => darwin}/ssh-lab (100%) diff --git a/home/.chezmoiscripts/universal/run_before_01-install-homebrew.sh.tmpl b/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl similarity index 94% rename from home/.chezmoiscripts/universal/run_before_01-install-homebrew.sh.tmpl rename to home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl index cc1a1394..5bf9fc24 100644 --- a/home/.chezmoiscripts/universal/run_before_01-install-homebrew.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl @@ -14,6 +14,11 @@ {{ includeTemplate "universal/profile-before" }} {{ includeTemplate "universal/logg-before" }} +### System upgrade on macOS +if [ -d /Applications ] && [ -d /Library ]; then + sudo softwareupdate -i -a +fi + ### Install Xcode CLI tools on macOS if [ -d /Applications ] && [ -d /Library ]; then xcode-select -p >/dev/null 2>&1 || sudo xcode-select --install diff --git a/home/.chezmoitemplates/ssh/ssh-lab b/home/.chezmoitemplates/darwin/ssh-lab similarity index 100% rename from home/.chezmoitemplates/ssh/ssh-lab rename to home/.chezmoitemplates/darwin/ssh-lab