From 41bcfd066a0c15173786ff81dd96a32d0d263de3 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Tue, 3 Dec 2024 00:03:15 +0100 Subject: [PATCH] fix(mac): run install before macos preference setup Because the script is killed when the preferences are applied. --- install-mac.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install-mac.sh b/install-mac.sh index dfd1123..e8de917 100755 --- a/install-mac.sh +++ b/install-mac.sh @@ -56,8 +56,11 @@ sudo scutil --set HostName "$computername" sudo scutil --set LocalHostName "$computername" sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "$computername" -# Set macOS preferences - we will run this last because this will reload the shell -source ${DOTFILES}/macos/.macos - # Call the general install script to setup zsh etc. source install.sh + +echo "> FINISHED 🏁 The setup will now set some macOS preferences and exit afterwards." +read -p "Press enter to continue" + +# Set macOS preferences - we will run this last because this will reload the shell +source ${DOTFILES}/macos/.macos