

I've tested the script by I'm getting some errors and it takes about 30 minutes to complete. Notify "Checking for Xcode Command Line Tools installation"Ĭheck=$( pkgutil -pkgs | grep _Executables | wc -l | awk ' # Have the xcode command line tools been installed? Logme "Caffinating the mac under process id: $caffeinatepid" # Let's start here by caffinating the mac so it stays awake or bad things happen. # Check and start logging - done twice for local log and for JAMF

# Check to see if function has been called correctlyĮcho $( date )" - logme function call error: no text passed to function! Please recheck code!"Įcho $( date )" - logme function call error: no text passed to function! Please recheck code!" > $LOG Tn="/path/to/terminal-notifier.app/Contents/MacOS/terminal-notifier"Ĭd="/path/to/cocoaDialog.app/Contents/MacOS/cocoaDialog" # Author: richard at richard - purves dot comĬonsoleuser="$(python -c 'from SystemConfiguration import SCDynamicStoreCop圜onsoleUser import sys username = (SCDynamicStoreCop圜onsoleUser(None, None, None) or ) username = ] (username + "
