From 4f8c8e2ff1cca62eabb7f68d6a747da873284bc6 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sun, 24 Dec 2023 23:42:37 +0000 Subject: [PATCH] Updated softwareupdate expect --- home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl b/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl index 72729963..a434b746 100644 --- a/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_02-homebrew.sh.tmpl @@ -125,7 +125,7 @@ upgradeDarwin() { ### Run upgrade process logg info 'Applying OS upgrades (if available)' expect -c "set timeout -1 - spawn sudo sh -c "sudo softwareupdate -i -a --agree-to-license" || logg error 'Failed to trigger a system update via sudo softwareupdate -i -a --agree-to-license' + spawn sudo softwareupdate -i -a --agree-to-license expect \"Password:\" send \"${SUDO_PASSWORD}\r\" expect eof" &> /dev/null || EXIT_CODE=$?