Closed MagerValp closed 2 years ago
Interesting. It appears that the directory isn't automatically created when using a fresh build of 12.3. Thank you for bringing this to my attention. I'll be sure to code this in.
This has been coded in and is now accounted for in the prerelease 3.0.0. Please give it a try and let me know. https://github.com/joshua-d-miller/macOSLAPS/releases/tag/3.0.0(752)
This has been addressed in the 3.0.0 Release Candidate. 3.0.1 Release Candidate is releasing tonight and should be the final version as long as there are no issues.
I'm testing macOSLAPS on a fresh install of macOS 12.3b1, and
-getPassword
fails as/var/root/Library/Application Support
has not yet been created by the system. The directory exists on my other machines, but it doesn't look like we can rely on it being there.Before writing the files at https://github.com/joshua-d-miller/macOSLAPS/blob/c67bd288c891283c880cdc61e7772a788dd8205c/macOSLAPS/main.swift#L72 maybe something along the lines of:
to ensure the directory exists?