fix: partially revert OS detection changes

These changes snuck into ad6a3d0, but have not been implemented yet, so
some OS-specific functionality was orphaned.

Amend: ad6a3d0f33
This commit is contained in:
Henrik Lissner 2022-08-18 17:06:42 +02:00
parent 8b4f722fa3
commit 4c9df9bfc6
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
5 changed files with 15 additions and 15 deletions

View file

@ -6,8 +6,8 @@
;; REVIEW Use `with-memoization' when 27.x support is dropped
(or (get 'doom-system-distro 'cached-value)
(put 'doom-system-distro 'cached-value
(cond ((featurep :os 'windows) 'windows)
((featurep :os 'macos) 'macos)
(cond (IS-WINDOWS 'windows)
(IS-MAC 'macos)
((and (file-exists-p "/etc/os-release")
(with-temp-buffer
(insert-file-contents "/etc/os-release")