You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: detect logged-in user's home directory when running as root
When asimov runs as root (via brew services or sudo), ~ expands to
/var/root. Now detects the console user via stat/dscl and uses their
home directory instead.
Addresses stevegrunwell#72.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
38
38
### Fixed
39
39
40
40
* Handle `tmutil` errors gracefully instead of crashing; paths that fail exclusion are skipped with a warning ([stevegrunwell/asimov#101], [stevegrunwell/asimov#86])
41
+
* Detect the logged-in user's home directory when running as root, fixing `brew services` and `sudo` invocations that would search `/var/root` instead ([stevegrunwell/asimov#72])
0 commit comments