shell-intune-samples icon indicating copy to clipboard operation
shell-intune-samples copied to clipboard

Added safety & efficiency when checking latest version

Open garrows opened this issue 3 years ago • 0 comments

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.

image

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.

garrows avatar Aug 08 '22 04:08 garrows