Updated loopCout to work with Stub/Lite installer – Stub/Lite installer does not specify a macOS version.
Check to see if the installer version matches, or if the installer does not have InstallInfo.plist.
if [ "$currentInstallerVersion" = "$installerVersion" ] || [[ ! -e "$OSInstaller/Contents/SharedSupport/InstallInfo.plist" ]]; then
Updated variable "currentUser" to Apple recommended method.
Updated "validate_free_space" to work with Catalina – freeSpace Added "Print :APFSContainerFree" /usr/libexec/PlistBuddy -c "Print :APFSContainerFree" /dev/stdin <<< "$diskInfoPlist" 2>/dev/null || /usr/libexec/PlistBuddy -c "Print :FreeSpace" /dev/stdin <<< "$diskInfoPlist" 2>/dev/null || /usr/libexec/PlistBuddy -c "Print :AvailableSpace" /dev/stdin <<< "$diskInfoPlist" 2>/dev/null
Updated loopCout to work with Stub/Lite installer – Stub/Lite installer does not specify a macOS version. Check to see if the installer version matches, or if the installer does not have InstallInfo.plist. if [ "$currentInstallerVersion" = "$installerVersion" ] || [[ ! -e "$OSInstaller/Contents/SharedSupport/InstallInfo.plist" ]]; then
Updated variable "currentUser" to Apple recommended method.