shell-intune-samples
shell-intune-samples copied to clipboard
Added safety & efficiency when checking latest version
Previously if the curl failed, $lastmodified is set to a blank string. Later on, it'll unnecessarily try to install an update because the versions mismatch. See screenshot for an example log of this happening.

Additionally, now $lastmodified is cached so when fetchLastModifiedDate update is called, it'll always be the same version and not have a risk of failure.