+ 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
+ Changed up the while loop App existence check, as previously couldn't properly report "No versions found"
+ Fixed Local License install -- was hard coded to 2016 version path
+ Modified the expect statements as there was something causing this process to fail
+ Reorganized the output a bit
+ Moved the chmod section so it is run on all license mechanisms
+ Moved the JDK install to the begining, otherewise the Maple's install yells about it during the installation process
+ Adjusted for better exit checks
+ Improved the search for <version to upgrade>
+ Minor formatting changes
+ Check exit code from the install process
+ Removed all hardcoded values
+ Script will check before injecting proper version string into the App Bundle Info.plist
+ Added ability to license multiple installed versions
+ Updated method to find App Bundle
+ Had to reorder some code to properly support these changes
+ Fixed various issues found after further testing for Matlab 2017b
- Remove the argument '-mode silent' from install line; added it back to the installer_input file
+ The 'staging' method from the last revision for the network.lic file did not work, as Matlab does not 'look' for it until it's first launch, which, at that time, the network.lic file is gone (it's pointing to the tempoary unpack directory of the pkg)