mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.01k stars 8.74k forks source link

Calls to systemsetup in macos script return error message #1030

Open mmcalli opened 1 year ago

mmcalli commented 1 year ago

Calls to systemsetup in the macos setup script return error messages. Here's an example:-

[:~] $ sudo systemsetup -setrestartfreeze on
2022-07-18 12:50:15.251 systemsetup[16791:120362] ### Error:-99 File:/AppleInternal/Library/BuildRoots/b6051351-c030-11ec-96e9-3e7866fcf3a1/Library/Caches/com.apple.xbs/Sources/Admin/InternetServices.m Line:379
[:~] $ sudo systemsetup -setcomputersleep Off > /dev/null
2022-07-18 12:55:37.204 systemsetup[17214:126771] ### Error:-99 File:/AppleInternal/Library/BuildRoots/b6051351-c030-11ec-96e9-3e7866fcf3a1/Library/Caches/com.apple.xbs/Sources/Admin/InternetServices.m Line:379

Issue occurred on macOS Monterey 12.4, with an intel based chip. Commands run from a bash shell.

tresni commented 1 year ago

2> /dev/null will suppress the messages. I haven't seen an issue with doing this and settings appear to apply.