macadmins / sofa

SOFA | A MacAdmin's Simple Organized Feed for Apple Software Updates
https://sofa.macadmins.io
Apache License 2.0
162 stars 27 forks source link

relocate temp files to /var/tmp #175

Closed bartreardon closed 1 month ago

bartreardon commented 1 month ago

Changed /private/tmp to /var/tmp due to issues experienced with the former returning older versions of the file if recently updated (why? no idea) which could cause the OS Compatibility Check to fail.

Also added in a validation check to make sure we have a model name. This wasn't directly an issue but it could potentially be so adding it in for completeness.

Each script has been tested (N=1).

Additionally macOSCompatibilityCheck-EA.sh has been tested in a Jamf Pro environment where the issue was first noticed

bartreardon commented 1 month ago

context for the issue in this thread on the macadmins slack https://macadmins.slack.com/archives/C0224B1QUSK/p1726531830871869