fix(mac): run install before macos preference setup

Because the script is killed when the preferences are applied.
This commit is contained in:
Saibotk 2024-12-03 00:03:15 +01:00
parent 5ccb703ea4
commit 41bcfd066a
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -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