From 64e78947f5b5de1c1608ed8b70959c5179735796 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 2 Dec 2022 18:54:04 +0000 Subject: [PATCH] Update .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl --- .../darwin/run_onchange_after_10_configure-macos.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl b/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl index aadea449..e0d156b6 100644 --- a/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl +++ b/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-macos.tmpl @@ -12,7 +12,8 @@ logg 'Applying optimized macOS settings' osascript -e 'tell application "System Preferences" to quit' # Ask for the administrator password upfront -sudo -v +logg info 'A sudo password is required to apply some of the macOS optimizations.' +sudo echo "Sudo access granted." # Keep-alive: update existing `sudo` time stamp until `.macos` has finished while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &