I don't believe it's related to user space, but that's a good post to
bookmark anyway. Your Write_To_Config function is simply causing the
exit code 1 because of the line cleanup_and_exit 1 "Set deferral,
Exiting." So you'll need to decide when do yo...
You can also install Xcode CLT via script. Rich Trouton has one and
Kandji has one on their GitHub repo. (It's MDM agnostic) The download
and install takes quite a few minutes so it'd need additional work if
you were adding it in Self Service, otherw...