From c33de42dce6546400700b6bd50e619cba0d3b4b9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 17 Jul 2018 13:59:17 +0200 Subject: [PATCH] Don't use uname in doom/info on windows --- core/autoload/debug.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/autoload/debug.el b/core/autoload/debug.el index 82154d74f..47f571ca3 100644 --- a/core/autoload/debug.el +++ b/core/autoload/debug.el @@ -40,10 +40,12 @@ ready to be pasted in a bug report on github." ,doom-core-dir ,doom-private-dir) :type 'files :match "\\.elc$")) - (with-temp-buffer - (unless (zerop (call-process "uname" nil t nil "-a")) - (insert (format "%s" system-type))) - (string-trim (buffer-string))) + (if IS-WINDOWS + "n/a" + (with-temp-buffer + (unless (zerop (call-process "uname" nil t nil "-a")) + (insert (format "%s" system-type))) + (string-trim (buffer-string)))) (or (cl-loop with cat = nil for key being the hash-keys of (doom-modules) if (or (not cat) (not (eq cat (car key))))