+ Improved logic to make sense with the workflow of being run from Jamf or CLI.
+ Changed a few bits to improve user experience
+ Added/improved several checks after tasks
+ Added loop to prompt to create another printer after creating a printer
+ Adjusted language outputed by checkStatusCode()
+ I've been working on this script for the last week trying to hash out some of the ideas I had. It's all there I believe, just need to improve the flow of logic.
- While working through this and testing, found a different way of doing this -- Leaving updateSiteList() Function for others, but I'm not using in my workflow
+ Finalized the update Site EA for Computers, removed from function
+ Tested and verified minimum required elements for curl "PUT" cmd to properly configure App
- Removed all unnecessary code from elements that were not needed
- Removed quoting ("") that I had used when originally was doing comma delimited values (now using tab delimited)
+ Added a function, informBy(), that will decide where to send verbose output
+ The logic directs the output based on where the script is ran; either from CLI or Jamf
+ Modified the curl commands so that we can get the HTTP Status Codes for each API call and then check each call for success/failures
+ Changed the exitCode() function to checkStatusCode() to compare the HTTP Status Codes
+ Added and adjusted logic to where the script can be run via CLI or from a Jamf Self Service Policy (for Site Admins)
+ Added option to prompt for credentials
+ Fixed the JPS server URL variables
+ Redefined the curl command structure to work how I wanted
+ Fixed header creation to properly output to file
+ Added xml structure to pull additional elements for each App