+ 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
+ Changed up the while loop App existence check, as previously couldn't properly report "No versions found"
+ Updated method used to aquire App Bundle Version
By: ZT
+ Changed the `cd` reference
+ Changed up the while loop App existence check, as previously couldn't properly report "No versions found"
+ Fixed minor typos and other minor items
+ Added check to make sure a previous major version existed to upgrade
+ Improved `sed` line to insert the USER_INSTALL_DIR into the installer.properties file
+ Transposed a the '+' in the chmod line
+ Redefined the "successful" check
+ Improved `sed` line to insert the updated version into the info.plist
+ Changed the interpreter to bash (was causing issues)
+ Changed up the while loop App existence check, as previously couldn't properly report "No versions found"
+ Changed the interpreter to bash (was causing issues)
+ Added version pass off from build script
+ Corrected check for JDK
+ Added -forceNoRecon switch to Jamf policy call for the JDK
+ Added step to make the Installer.bin file executable
+ Redefined the "successful" check
+ Changed `cp` to `mv`
+ Improved `sed` line to insert the $majorVersion into the installer.properties file
+ Added `sed` line to insert the version into the install script
+ Improved `sed` line to insert the version into the update script